diff options
author | treeston <treeston.mmoc@gmail.com> | 2016-02-07 03:23:36 +0100 |
---|---|---|
committer | treeston <treeston.mmoc@gmail.com> | 2016-02-09 22:46:57 +0100 |
commit | 19ed18c8816e9bd495dcc03eb0e208006a17bab0 (patch) | |
tree | 6a720f96c84fdbadd7adf8e4791f62aa9ff330cb /src/server/game/AI/CreatureAI.cpp | |
parent | e064000a355005f596557c2ad10d5d189996f426 (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.
Diffstat (limited to 'src/server/game/AI/CreatureAI.cpp')
-rw-r--r-- | src/server/game/AI/CreatureAI.cpp | 2 |
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; |