diff options
author | ariel- <ariel-@users.noreply.github.com> | 2017-04-23 20:36:46 -0300 |
---|---|---|
committer | ariel- <ariel-@users.noreply.github.com> | 2017-04-23 21:48:05 -0300 |
commit | b6b0353bff151d180d98f4f7a67414cfca4bd585 (patch) | |
tree | 51440e4de35fb8bd4fd07a565b7e864c6bf9db10 /src | |
parent | 7c87ef5088c16539cd08c6da748e59dab0c4df67 (diff) |
Core/AI: prevent launching a new MoveChase if victim didn't change
Thanks ccrs for feedback :P
Diffstat (limited to 'src')
-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 b152773509b..11f6f8d0f36 100644 --- a/src/server/game/AI/CreatureAI.cpp +++ b/src/server/game/AI/CreatureAI.cpp @@ -240,7 +240,7 @@ bool CreatureAI::UpdateVictim() if (!me->HasReactState(REACT_PASSIVE)) { if (Unit* victim = me->SelectVictim()) - if (!me->IsFocusing(nullptr, true)) + if (!me->IsFocusing(nullptr, true) && victim != me->GetVictim()) AttackStart(victim); return me->GetVictim() != nullptr; |