780 {
782
783 if (!owner)
785
788
790 {
793 }
794
795 std::list<Creature*> villagers;
798
799 if (villagers.empty())
800 {
803 }
804
806 {
809 }
810
813
815 {
817 return result;
818 }
819
821 }
@ AREA_WINTERGARDE_KEEP
Definition AreaDefines.h:144
SpellCustomErrors
Definition SharedDefines.h:1130
@ SPELL_CUSTOM_ERROR_NEED_HELPLESS_VILLAGER
Definition SharedDefines.h:1134
@ SPELL_CUSTOM_ERROR_MUST_BE_NEAR_HELPLESS_VILLAGER
Definition SharedDefines.h:1166
@ SPELL_CUSTOM_ERROR_NONE
Definition SharedDefines.h:1131
SpellCastResult
Definition SharedDefines.h:936
@ SPELL_FAILED_CUSTOM_ERROR
Definition SharedDefines.h:1109
@ SPELL_FAILED_DONT_REPORT
Definition SharedDefines.h:964
@ SPELL_FAILED_CANT_DO_THAT_RIGHT_NOW
Definition SharedDefines.h:1110
@ SPELL_CAST_OK
Definition SharedDefines.h:1126
SpellInfo const * GetSpellInfo()
Definition SpellScript.cpp:416
Unit * GetCaster()
Definition SpellScript.cpp:401
static void SendCastResult(Player *caster, SpellInfo const *spellInfo, uint8 castCount, SpellCastResult result, SpellCustomErrors customError=SPELL_CUSTOM_ERROR_NONE)
Definition Spell.cpp:4809
Player * GetCharmerOrOwnerPlayerOrPlayerItself() const
Definition Unit.cpp:7503
bool IsAlive() const
Definition Unit.h:1796
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition Unit.cpp:5764
GameObject * FindNearestGameObject(uint32 entry, float range, bool onlySpawned=false) const
Definition Object.cpp:2567
void GetCreatureListWithEntryInGrid(std::list< Creature * > &lList, uint32 uiEntry, float fMaxSearchRange) const
Definition Object.cpp:2619
@ NPC_HELPLESS_VILLAGER_A
Definition zone_dragonblight.cpp:645
@ SPELL_RIDE_VEHICLE
Definition zone_dragonblight.cpp:643
@ NPC_HELPLESS_VILLAGER_B
Definition zone_dragonblight.cpp:646
@ GO_TEMP_GRYPHON_STATION
Definition zone_dragonblight.cpp:659