Core/Player: Fix teleporting FlyPath dismounting the player

Port From (https://github.com/TrinityCore/TrinityCore/commit/2d7ec53330bda17704cf46a88785f40b95ce3bfb)
This commit is contained in:
hondacrx
2021-12-17 19:37:23 -05:00
parent 8f24c82944
commit 85f24d047e
+1
View File
@@ -1661,6 +1661,7 @@ namespace Game.Entities
SetUnitMovementFlags(GetUnitMovementFlags() & MovementFlag.MaskHasPlayerStatusOpcode); SetUnitMovementFlags(GetUnitMovementFlags() & MovementFlag.MaskHasPlayerStatusOpcode);
m_movementInfo.ResetJump(); m_movementInfo.ResetJump();
DisableSpline(); DisableSpline();
if (!IsInFlight())
GetMotionMaster().Clear(); GetMotionMaster().Clear();
Transport transport = GetTransport(); Transport transport = GetTransport();