aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/CreatureAI.cpp
diff options
context:
space:
mode:
authorccrs <ccrs@users.noreply.github.com>2017-04-27 14:55:06 +0200
committerccrs <ccrs@users.noreply.github.com>2017-04-27 14:55:06 +0200
commitc7a57e2a093ada2ece7a01eac2f627aeb26b08d5 (patch)
tree25eb3c91f547e6e34504f6b6393ea011b91b1bae /src/server/game/AI/CreatureAI.cpp
parent4431a1149da7bc48ad1047fc8c6135ed02b2e77b (diff)
Core/Unit: 2170541a51 followup
use true as default value since pretty much all the script calls will expect that
Diffstat (limited to 'src/server/game/AI/CreatureAI.cpp')
-rw-r--r--src/server/game/AI/CreatureAI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/AI/CreatureAI.cpp b/src/server/game/AI/CreatureAI.cpp
index ca9fb578be5..9bc5a397ea5 100644
--- a/src/server/game/AI/CreatureAI.cpp
+++ b/src/server/game/AI/CreatureAI.cpp
@@ -162,9 +162,9 @@ void CreatureAI::TriggerAlert(Unit const* who) const
me->SendAIReaction(AI_REACTION_ALERT);
// Face the unit (stealthed player) and set distracted state for 5 seconds
- me->SetFacingTo(me->GetAngle(who->GetPositionX(), who->GetPositionY()), true);
- me->StopMoving();
me->GetMotionMaster()->MoveDistract(5 * IN_MILLISECONDS);
+ me->StopMoving();
+ me->SetFacingTo(me->GetAngle(who));
}
void CreatureAI::EnterEvadeMode(EvadeReason why)