diff options
author | ccrs <ccrs@users.noreply.github.com> | 2017-04-27 14:55:06 +0200 |
---|---|---|
committer | ccrs <ccrs@users.noreply.github.com> | 2017-04-27 14:55:06 +0200 |
commit | c7a57e2a093ada2ece7a01eac2f627aeb26b08d5 (patch) | |
tree | 25eb3c91f547e6e34504f6b6393ea011b91b1bae /src/server/game/AI/CreatureAI.cpp | |
parent | 4431a1149da7bc48ad1047fc8c6135ed02b2e77b (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.cpp | 4 |
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) |