*Apply range mod also for melee spells.
--HG-- branch : trunk
This commit is contained in:
1 parent
8685659d6b
commit
8ffc1a6e4c
3 files changed
+4
-4
No files matched your search
+1
-1
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user