[c12616] Simplify use of CombatReach

This commit is contained in:
Schmoozerd 2013-05-31 12:11:23 +01:00 committed by Antz
parent e478b27dcc
commit dc3de04d62
6 changed files with 36 additions and 22 deletions

View file

@ -6554,7 +6554,7 @@ SpellCastResult Spell::CheckRange(bool strict)
if (target && target != m_caster)
{
// distance from target in checks
float dist = m_caster->GetCombatDistance(target);
float dist = m_caster->GetCombatDistance(target, m_spellInfo->rangeIndex == SPELL_RANGE_IDX_COMBAT);
if (dist > max_range)
return SPELL_FAILED_OUT_OF_RANGE;