602 {
606
607
618
620 return result;
621
623 if (!target)
625
628
630 }
std::uint32_t uint32
Definition: Define.h:107
@ UNIT_FLAG_STUNNED
Definition: UnitDefines.h:247
@ UNIT_FLAG_CONFUSED
Definition: UnitDefines.h:251
@ UNIT_FLAG_FLEEING
Definition: UnitDefines.h:252
SpellCastResult
Definition: SharedDefines.h:948
@ SPELL_FAILED_STUNNED
Definition: SharedDefines.h:1057
@ SPELL_FAILED_BAD_TARGETS
Definition: SharedDefines.h:961
@ SPELL_FAILED_CONFUSED
Definition: SharedDefines.h:975
@ SPELL_CAST_OK
Definition: SharedDefines.h:1138
@ SPELL_FAILED_CHARMED
Definition: SharedDefines.h:973
@ SPELL_FAILED_LINE_OF_SIGHT
Definition: SharedDefines.h:996
@ SPELL_FAILED_FLEEING
Definition: SharedDefines.h:983
@ SPELL_FAILED_NO_PET
Definition: SharedDefines.h:1033
Player * ToPlayer()
Definition: Object.h:198
bool IsWithinLOSInMap(WorldObject const *obj, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, Optional< float > collisionHeight={ }, Optional< float > combatReach={ }) const
Definition: Object.cpp:1347
Pet * GetPet() const
Definition: Player.cpp:8906
bool IsAlive() const
Definition: Unit.h:1204
UnitFlags GetUnitFlags() const
Definition: Unit.h:681
ObjectGuid GetCharmerGUID() const
Definition: Unit.h:1216
Unit * GetExplTargetUnit()
Definition: SpellScript.cpp:433
Unit * GetCaster()
Definition: SpellScript.cpp:401