388{
389 if (!target)
390 return false;
391
393 return false;
394
395
399
400 if (target && target !=
_caster)
401 {
403 {
404
406 return false;
407 }
409 return false;
410
412 {
414 return false;
415 }
417 return false;
418 }
419
420 return true;
421}
std::uint32_t uint32
Definition: Define.h:108
@ SPELL_RANGE_MELEE
Definition: Spell.h:89
@ SPELL_RANGE_RANGED
Definition: Spell.h:90
@ SPELL_CAST_OK
Definition: SharedDefines.h:1110
bool IsWithinCombatRange(Unit const *obj, float dist2compare) const
Definition: Unit.cpp:667
float GetSpellMinRangeForTarget(Unit const *target, SpellInfo const *spellInfo) const
Definition: Unit.cpp:15137
bool IsWithinMeleeRange(Unit const *obj, float dist=0.f) const
Definition: Unit.cpp:683
float GetSpellMaxRangeForTarget(Unit const *target, SpellInfo const *spellInfo) const
Definition: Unit.cpp:15117
SpellRangeEntry const * RangeEntry
Definition: SpellInfo.h:367
SpellCastResult CheckTarget(Unit const *caster, WorldObject const *target, bool implicit=true) const
Definition: SpellInfo.cpp:1744
uint32 Flags
Definition: DBCStructure.h:1797