diff options
author | QAston <none@none> | 2009-02-14 15:56:04 +0100 |
---|---|---|
committer | QAston <none@none> | 2009-02-14 15:56:04 +0100 |
commit | 14d85a183e2bf1fef602e6377510e9fc05ac9107 (patch) | |
tree | 0aa17b9f8fa292f8396f227308799e8188531a97 /src/game/TotemAI.cpp | |
parent | f506fde01e84d2a1aeb7fbabe051673479a5afb6 (diff) |
*Make range check dependent from target.
--HG--
branch : trunk
Diffstat (limited to 'src/game/TotemAI.cpp')
-rw-r--r-- | src/game/TotemAI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/TotemAI.cpp b/src/game/TotemAI.cpp index 81113a3a9f8..184cb141913 100644 --- a/src/game/TotemAI.cpp +++ b/src/game/TotemAI.cpp @@ -68,9 +68,9 @@ TotemAI::UpdateAI(const uint32 /*diff*/) if (!spellInfo) return; - // Get spell rangy + // Get spell range SpellRangeEntry const* srange = sSpellRangeStore.LookupEntry(spellInfo->rangeIndex); - float max_range = GetSpellMaxRange(srange); + float max_range = GetSpellMaxRangeForHostile(srange); // SPELLMOD_RANGE not applied in this place just because not existence range mods for attacking totems |