diff options
| author | megamage <none@none> | 2008-12-04 23:00:35 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2008-12-04 23:00:35 -0600 |
| commit | d36672cd7e4ae3d328f30c020c5421668ad4cb5e (patch) | |
| tree | 572ff4758483da0d2d723ab33e028d48670de76e /src/game/SpellMgr.h | |
| parent | 450c0a45b87fb043f39298cf94c7f7254ade2fc5 (diff) | |
*Update spell range calculation. Original patch by QAston.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellMgr.h')
| -rw-r--r-- | src/game/SpellMgr.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/SpellMgr.h b/src/game/SpellMgr.h index 303f1378c32..f89edb49635 100644 --- a/src/game/SpellMgr.h +++ b/src/game/SpellMgr.h @@ -272,8 +272,9 @@ SpellSpecific GetSpellSpecific(uint32 spellId); // Different spell properties inline float GetSpellRadius(SpellRadiusEntry const *radius) { return (radius ? radius->Radius : 0); } uint32 GetSpellCastTime(SpellEntry const* spellInfo, Spell const* spell = NULL); -float GetSpellMinRange(SpellRangeEntry const *range); +inline float GetSpellMinRange(SpellRangeEntry const *range) { return (range ? range->minRange : 0); } inline float GetSpellMaxRange(SpellRangeEntry const *range) { return (range ? range->maxRange : 0); } +inline uint32 GetSpellRangeType(SpellRangeEntry const *range) { return (range ? range->type : 0); } inline uint32 GetSpellRecoveryTime(SpellEntry const *spellInfo) { return spellInfo->RecoveryTime > spellInfo->CategoryRecoveryTime ? spellInfo->RecoveryTime : spellInfo->CategoryRecoveryTime; } int32 GetSpellDuration(SpellEntry const *spellInfo); int32 GetSpellMaxDuration(SpellEntry const *spellInfo); |
