602 {
606
607
618
620 return result;
621
623 if (!target)
625
628
630 }
std::uint32_t uint32
Definition: Define.h:107
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
@ UNIT_FLAG_STUNNED
Definition: UnitDefines.h:247
@ UNIT_FLAG_CONFUSED
Definition: UnitDefines.h:251
@ UNIT_FLAG_FLEEING
Definition: UnitDefines.h:252
Player * ToPlayer()
Definition: Object.h:201
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:1358
Pet * GetPet() const
Definition: Player.cpp:8939
bool IsAlive() const
Definition: Unit.h:1654
UnitFlags GetUnitFlags() const
Definition: Unit.h:711
ObjectGuid GetCharmerGUID() const
Definition: Unit.h:684
Unit * GetExplTargetUnit()
Definition: SpellScript.cpp:433
Unit * GetCaster()
Definition: SpellScript.cpp:401