aboutsummaryrefslogtreecommitdiff
path: root/src/game/UnitAI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/UnitAI.cpp')
-rw-r--r--src/game/UnitAI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/UnitAI.cpp b/src/game/UnitAI.cpp
index c04a698048b..a8185453491 100644
--- a/src/game/UnitAI.cpp
+++ b/src/game/UnitAI.cpp
@@ -217,7 +217,7 @@ void UnitAI::DoCast(uint32 spellId)
{
const SpellEntry * spellInfo = GetSpellStore()->LookupEntry(spellId);
bool playerOnly = spellInfo->AttributesEx3 & SPELL_ATTR_EX3_PLAYERS_ONLY;
- float range = GetSpellMaxRange(spellInfo, false);
+ //float range = GetSpellMaxRange(spellInfo, false);
target = SelectTarget(SELECT_TARGET_RANDOM, 0, GetSpellMaxRange(spellInfo, false), playerOnly);
break;
}