mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 15:40:45 +01:00
Core/Player: Remove all Motion Masters when teleporting
Fix #22859
(cherry picked from commit 72fc79a9e6)
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