aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r--src/game/Spell.cpp2
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))