Core/Player: Remove all Motion Masters when teleporting

Port From (https://github.com/TrinityCore/TrinityCore/commit/ab3edebb5d824f7cb0d030daba168e2bb7900511)
This commit is contained in:
hondacrx
2021-12-17 17:44:45 -05:00
parent f1bfc12b9d
commit b84f88d98f
+1
View File
@@ -1661,6 +1661,7 @@ namespace Game.Entities
SetUnitMovementFlags(GetUnitMovementFlags() & MovementFlag.MaskHasPlayerStatusOpcode);
m_movementInfo.ResetJump();
DisableSpline();
GetMotionMaster().Clear();
Transport transport = GetTransport();
if (transport)