*Apply range mod also for melee spells.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2008-12-06 10:44:53 -06:00
1 parent 8685659d6b
commit 8ffc1a6e4c
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -4695,7 +4695,7 @@ uint8 Spell::CheckRange(bool strict)
{
if(range_type == SPELL_RANGE_MELEE)
{
if(!m_caster->IsWithinMeleeRange(target))
if(!m_caster->IsWithinMeleeRange(target, max_range - 2*MIN_MELEE_REACH))
return SPELL_FAILED_OUT_OF_RANGE;
}
else if(!m_caster->IsWithinCombatRange(target, max_range))