aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/CreatureAI.cpp
diff options
context:
space:
mode:
authortreeston <treeston.mmoc@gmail.com>2016-02-07 03:23:36 +0100
committerShauren <shauren.trinity@gmail.com>2016-04-05 18:37:20 +0200
commit53722a81a233a24970f5785ec712aa3276a3a205 (patch)
tree0454fe1bec701b25f1ebc94322785c872e3238dc /src/server/game/AI/CreatureAI.cpp
parent7672ca194552704eacf0fa49c7c28e91ade64399 (diff)
AI/BossAI: Make creature never chase targets that are out of bounds
- Add missing const attribute on CheckBoundary arg. - Prevent AI from attacking a target that is out of bounds. This prevents exploids such as killing Gluth/Deathbringer from out of bounds. (cherry picked from commit 19ed18c8816e9bd495dcc03eb0e208006a17bab0)
Diffstat (limited to 'src/server/game/AI/CreatureAI.cpp')
-rw-r--r--src/server/game/AI/CreatureAI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/AI/CreatureAI.cpp b/src/server/game/AI/CreatureAI.cpp
index c254a9124c1..44098586e5f 100644
--- a/src/server/game/AI/CreatureAI.cpp
+++ b/src/server/game/AI/CreatureAI.cpp
@@ -350,7 +350,7 @@ int32 CreatureAI::VisualizeBoundary(uint32 duration, Unit* owner, bool fill) con
return boundsWarning ? LANG_CREATURE_MOVEMENT_MAYBE_UNBOUNDED : 0;
}
-bool CreatureAI::CheckBoundary(Position* who) const
+bool CreatureAI::CheckBoundary(Position const* who) const
{
if (!who)
who = me;