Core/Misc: waypoint movement
Port From (https://github.com/TrinityCore/TrinityCore/commit/bf12bae46746149d870cd3e52ccd610f0a975047)
This commit is contained in:
@@ -159,7 +159,7 @@ namespace Game.Entities
|
||||
init.Stop();
|
||||
}
|
||||
|
||||
public void PauseMovement(uint timer = 0, MovementSlot slot = 0)
|
||||
public void PauseMovement(uint timer = 0, MovementSlot slot = 0, bool forced = true)
|
||||
{
|
||||
if (slot >= MovementSlot.Max)
|
||||
return;
|
||||
@@ -168,7 +168,8 @@ namespace Game.Entities
|
||||
if (movementGenerator != null)
|
||||
movementGenerator.Pause(timer);
|
||||
|
||||
StopMoving();
|
||||
if (forced)
|
||||
StopMoving();
|
||||
}
|
||||
|
||||
public void ResumeMovement(uint timer = 0, MovementSlot slot = 0)
|
||||
|
||||
Reference in New Issue
Block a user