aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/EventAI
diff options
context:
space:
mode:
authortobmaps <spambot42@yandex.ru>2011-08-05 01:46:35 +0700
committertobmaps <spambot42@yandex.ru>2011-08-05 01:46:35 +0700
commit2056af63f01c177376fc6bebb41ce158cc6016b4 (patch)
tree2d9fc34ad4769bc414079f7c854b9b5d488544b8 /src/server/game/AI/EventAI
parent3a32ded09b4740ac1f7c33dcdb444901e5be87e4 (diff)
Core/Spells: Fix typo in b0fe236265465a0f39aa98a8cee2916d1ccfaa02 , thx A-Metaphysical-Drama
Diffstat (limited to 'src/server/game/AI/EventAI')
-rwxr-xr-xsrc/server/game/AI/EventAI/CreatureEventAI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/AI/EventAI/CreatureEventAI.cpp b/src/server/game/AI/EventAI/CreatureEventAI.cpp
index fa2c0e3856b..a1a3cc6c48a 100755
--- a/src/server/game/AI/EventAI/CreatureEventAI.cpp
+++ b/src/server/game/AI/EventAI/CreatureEventAI.cpp
@@ -1319,7 +1319,7 @@ bool CreatureEventAI::CanCast(Unit* Target, SpellInfo const *Spell, bool Trigger
return false;
//Unit is out of range of this spell
- if (!me->IsInRange(Target, Spell->GetMinRange(false), Spell->GetMinRange(true)))
+ if (!me->IsInRange(Target, Spell->GetMinRange(false), Spell->GetMaxRange(false)))
return false;
return true;