777 {
779
780 if (!owner)
782
785
787 {
790 }
791
792 std::list<Creature*> villagers;
795
796 if (villagers.empty())
797 {
800 }
801
803 {
806 }
807
810
812 {
814 return result;
815 }
816
818 }
@ AREA_WINTERGARDE_KEEP
Definition AreaDefines.h:144
SpellCustomErrors
Definition SharedDefines.h:1153
@ SPELL_CUSTOM_ERROR_NEED_HELPLESS_VILLAGER
Definition SharedDefines.h:1157
@ SPELL_CUSTOM_ERROR_MUST_BE_NEAR_HELPLESS_VILLAGER
Definition SharedDefines.h:1189
@ SPELL_CUSTOM_ERROR_NONE
Definition SharedDefines.h:1154
SpellCastResult
Definition SharedDefines.h:959
@ SPELL_FAILED_CUSTOM_ERROR
Definition SharedDefines.h:1132
@ SPELL_FAILED_DONT_REPORT
Definition SharedDefines.h:987
@ SPELL_FAILED_CANT_DO_THAT_RIGHT_NOW
Definition SharedDefines.h:1133
@ SPELL_CAST_OK
Definition SharedDefines.h:1149
SpellInfo const * GetSpellInfo()
Definition SpellScript.cpp:411
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:4619
Player * GetCharmerOrOwnerPlayerOrPlayerItself() const
Definition Unit.cpp:10820
bool IsAlive() const
Definition Unit.h:1773
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition Unit.cpp:5840
GameObject * FindNearestGameObject(uint32 entry, float range, bool onlySpawned=false) const
Definition Object.cpp:2452
void GetCreatureListWithEntryInGrid(std::list< Creature * > &lList, uint32 uiEntry, float fMaxSearchRange) const
Definition Object.cpp:2504
@ 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