diff options
Diffstat (limited to 'src/game/SpellMgr.cpp')
-rw-r--r-- | src/game/SpellMgr.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index 8d17d94ec8e..5c42aa8d4ea 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -90,6 +90,15 @@ uint32 GetSpellCastTime(SpellEntry const* spellInfo, Spell const* spell) return (castTime > 0) ? uint32(castTime) : 0; } +float GetSpellMinRange(SpellRangeEntry const *range) +{ + if (!range) + return 0; + if (!range->minRange) + if (range->flags==SPELL_RANGE_RANGED) + return 5.0; + return range->minRange; +} bool IsPassiveSpell(uint32 spellId) { |