diff options
author | ariel- <ariel-@users.noreply.github.com> | 2016-09-04 18:19:43 -0300 |
---|---|---|
committer | ariel- <ariel-@users.noreply.github.com> | 2016-09-04 18:19:43 -0300 |
commit | 47a43b21c883492c4f3acebf633b5002cf58f4a0 (patch) | |
tree | 8aa8031128435851a02745e8b7126516c0a93307 /src | |
parent | bc4b4f656cda98be06c03301f22750804fea8fa0 (diff) |
Core/Scripts: move Icehowl unroot after movement (MotionMaster does not update if unit is Rooted)
Closes #17864
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_northrend_beasts.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_northrend_beasts.cpp b/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_northrend_beasts.cpp index 9835ab1342d..64299da79e6 100644 --- a/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_northrend_beasts.cpp +++ b/src/server/scripts/Northrend/CrusadersColiseum/TrialOfTheCrusader/boss_northrend_beasts.cpp @@ -1060,6 +1060,7 @@ class boss_icehowl : public CreatureScript _trampleTargetZ = target->GetPositionZ(); // 2: Hop Backwards me->GetMotionMaster()->MoveJump(2*me->GetPositionX() - _trampleTargetX, 2*me->GetPositionY() - _trampleTargetY, me->GetPositionZ(), me->GetOrientation(), 30.0f, 20.0f, 0); + me->SetControlled(false, UNIT_STATE_ROOT); _stage = 7; //Invalid (Do nothing more than move) } else @@ -1121,7 +1122,6 @@ class boss_icehowl : public CreatureScript } _movementStarted = false; me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); - me->SetControlled(false, UNIT_STATE_ROOT); SetCombatMovement(true); me->GetMotionMaster()->MovementExpired(); me->GetMotionMaster()->Clear(); |