390{
391 if (!target)
392 return false;
393
395 return false;
396
397
401
402 if (target && target !=
_caster)
403 {
405 {
406
408 return false;
409 }
411 return false;
412
414 {
416 return false;
417 }
419 return false;
420 }
421
422 return true;
423}
std::uint32_t uint32
Definition: Define.h:107
@ SPELL_RANGE_MELEE
Definition: Spell.h:89
@ SPELL_RANGE_RANGED
Definition: Spell.h:90
@ SPELL_CAST_OK
Definition: SharedDefines.h:1138
bool IsWithinCombatRange(Unit const *obj, float dist2compare) const
Definition: Unit.cpp:649
float GetSpellMinRangeForTarget(Unit const *target, SpellInfo const *spellInfo) const
Definition: Unit.cpp:15122
bool IsWithinMeleeRange(Unit const *obj, float dist=0.f) const
Definition: Unit.cpp:665
float GetSpellMaxRangeForTarget(Unit const *target, SpellInfo const *spellInfo) const
Definition: Unit.cpp:15102
SpellRangeEntry const * RangeEntry
Definition: SpellInfo.h:369
SpellCastResult CheckTarget(Unit const *caster, WorldObject const *target, bool implicit=true) const
Definition: SpellInfo.cpp:1758
uint32 Flags
Definition: DBCStructure.h:1797