aboutsummaryrefslogtreecommitdiff
path: root/src/game/TotemAI.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-02-14 15:56:04 +0100
committerQAston <none@none>2009-02-14 15:56:04 +0100
commit14d85a183e2bf1fef602e6377510e9fc05ac9107 (patch)
tree0aa17b9f8fa292f8396f227308799e8188531a97 /src/game/TotemAI.cpp
parentf506fde01e84d2a1aeb7fbabe051673479a5afb6 (diff)
*Make range check dependent from target.
--HG-- branch : trunk
Diffstat (limited to 'src/game/TotemAI.cpp')
-rw-r--r--src/game/TotemAI.cpp4
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