[11793] Add more features to SelectAttackingTarget

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
Schmoozerd 2011-09-16 20:31:06 +02:00
parent 6baf677a63
commit 0eff04c161
6 changed files with 98 additions and 32 deletions

View file

@ -5981,7 +5981,9 @@ SpellCastResult Spell::CheckRange(bool strict)
switch(m_spellInfo->rangeIndex)
{
// self cast doesn't need range checking -- also for Starshards fix
// spells that can be cast anywhere also need no check
case SPELL_RANGE_IDX_SELF_ONLY:
case SPELL_RANGE_IDX_ANYWHERE:
return SPELL_CAST_OK;
// combat range spells are treated differently
case SPELL_RANGE_IDX_COMBAT: