From 53722a81a233a24970f5785ec712aa3276a3a205 Mon Sep 17 00:00:00 2001 From: treeston Date: Sun, 7 Feb 2016 03:23:36 +0100 Subject: 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) --- src/server/game/AI/CreatureAI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/game/AI/CreatureAI.cpp') 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; -- cgit v1.2.3