diff options
| author | megamage <none@none> | 2009-07-01 17:34:09 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-07-01 17:34:09 -0500 |
| commit | 255d21b52b9d68dc347dedeee8dc8706094ddbde (patch) | |
| tree | c39081e4c905bf4250645ccaee967294b288ef64 /src | |
| parent | 8521b39af633ea84888599e54be5263d65d5f4bf (diff) | |
[8088] Fixed min_range checking for spell casts. Author: ApoC
Skip in check values 0.0f from DBC, this spells
do not have min range limitation.
This should fix some inappropriate target too close messages.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -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 2e7a0cd12d9..a783707ca60 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -5270,7 +5270,7 @@ SpellCastResult Spell::CheckRange(bool strict) { if(!m_caster->IsWithinDist3d(m_targets.m_destX, m_targets.m_destY, m_targets.m_destZ, max_range)) return SPELL_FAILED_OUT_OF_RANGE; - if(m_caster->IsWithinDist3d(m_targets.m_destX, m_targets.m_destY, m_targets.m_destZ, min_range)) + if(min_range && m_caster->IsWithinDist3d(m_targets.m_destX, m_targets.m_destY, m_targets.m_destZ, min_range)) return SPELL_FAILED_TOO_CLOSE; } |
