Core/Movement: backported a movemenet slot check to prevent PauseMovement from stopping movements that it's not suposed to stop
This commit is contained in:
1 parent
6ad66f9cfc
commit
9f39c218db
3 files changed
+13
-1
No files matched your search
@@ -11006,7 +11006,7 @@ void Unit::PauseMovement(uint32 timer/* = 0*/, uint8 slot/* = 0*/, bool forced/*
|
||||
if (MovementGenerator* movementGenerator = GetMotionMaster()->GetMotionSlot(MovementSlot(slot)))
|
||||
movementGenerator->Pause(timer);
|
||||
|
||||
if (forced)
|
||||
if (forced && GetMotionMaster()->GetCurrentSlot() == MovementSlot(slot))
|
||||
StopMoving();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user