Core/Player: Fix teleporting FlyPath dismounting the player
Issue added in 72fc79a9e63d77754699a3da90d81219b2defb0d (cherry picked from commit 4019cae375838e3bc653936fb9705d8df57ca571)
This commit is contained in:
@@ -1369,7 +1369,8 @@ bool Player::TeleportTo(uint32 mapid, float x, float y, float z, float orientati
|
||||
SetUnitMovementFlags(GetUnitMovementFlags() & MOVEMENTFLAG_MASK_HAS_PLAYER_STATUS_OPCODE);
|
||||
m_movementInfo.ResetJump();
|
||||
DisableSpline();
|
||||
GetMotionMaster()->Clear();
|
||||
if (!IsInFlight())
|
||||
GetMotionMaster()->Clear();
|
||||
|
||||
if (Transport* transport = GetTransport())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user