Followup to waypoint movement

Port From (https://github.com/TrinityCore/TrinityCore/commit/0a133e77d61fc6bafad7b60b74604d5da648ece9)
This commit is contained in:
hondacrx
2020-08-24 17:52:09 -04:00
parent c2ae405346
commit d9770ed0f9
5 changed files with 5 additions and 8 deletions
@@ -105,13 +105,6 @@ namespace Game.Entities
ForcedDespawn(0);
}
public override void PauseMovement(uint timer = 0, MovementSlot slot = 0)
{
base.PauseMovement(timer, slot);
SetHomePosition(GetPosition());
}
public bool IsReturningHome()
{
if (GetMotionMaster().GetMotionSlotType(MovementSlot.Active) == MovementGeneratorType.Home)
+1 -1
View File
@@ -159,7 +159,7 @@ namespace Game.Entities
init.Stop();
}
public virtual void PauseMovement(uint timer = 0, MovementSlot slot = 0)
public void PauseMovement(uint timer = 0, MovementSlot slot = 0)
{
if (slot >= MovementSlot.Max)
return;