*Update spell range calculation. Original patch by QAston.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2008-12-04 23:00:35 -06:00
1 parent 450c0a45b8
commit d36672cd7e
12 files changed
+42 -32

No files matched your search

-10
View File
@@ -90,16 +90,6 @@ 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 2.0;//this is a hack, needs fix
return range->minRange;
}
bool IsPassiveSpell(uint32 spellId)
{