diff options
| author | megamage <none@none> | 2008-12-06 10:44:53 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2008-12-06 10:44:53 -0600 |
| commit | 8ffc1a6e4ce588cdf9b54e26616c4a92729f7ffd (patch) | |
| tree | 1be374af9055b2497de315cef231632218c1fb7e /src/game/Spell.cpp | |
| parent | 8685659d6bf6f56805753c1507e025213395b480 (diff) | |
*Apply range mod also for melee spells.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
| -rw-r--r-- | src/game/Spell.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 307c7770cae..53261ef03ab 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -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)) |
