aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/CreatureAI.cpp
diff options
context:
space:
mode:
authorKillyana <morphone1@gmail.com>2020-01-01 17:19:37 +0100
committerKillyana <morphone1@gmail.com>2020-01-01 17:19:37 +0100
commita32aeceb0da5d691eb655e80eb9ea7b32fc44839 (patch)
treeba3d2d7bc88fc323bca7466fe1c507bf7ef5d104 /src/server/game/AI/CreatureAI.cpp
parent4ccf01de3947f50629c20192da3f99cb8c693b35 (diff)
Core/Creature: Clear creature focus after an evade
Diffstat (limited to 'src/server/game/AI/CreatureAI.cpp')
-rw-r--r--src/server/game/AI/CreatureAI.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/game/AI/CreatureAI.cpp b/src/server/game/AI/CreatureAI.cpp
index 5f1d13e047c..791c53dba39 100644
--- a/src/server/game/AI/CreatureAI.cpp
+++ b/src/server/game/AI/CreatureAI.cpp
@@ -310,6 +310,7 @@ bool CreatureAI::_EnterEvadeMode(EvadeReason /*why*/)
me->SetLastDamagedTime(0);
me->SetCannotReachTarget(false);
me->DoNotReacquireSpellFocusTarget();
+ me->SetTarget(ObjectGuid::Empty);
me->GetSpellHistory()->ResetAllCooldowns();
EngagementOver();