Core/Player: Remove all Motion Masters when teleporting
Fix #22859 (cherry picked from commit 72fc79a9e63d77754699a3da90d81219b2defb0d)
This commit is contained in:
@@ -1369,6 +1369,7 @@ 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 (Transport* transport = GetTransport())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user