mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Player: 72fc79a followup
safer approach, please report any returning issue
(cherry picked from commit 337de2b61e)
This commit is contained in:
@@ -1369,8 +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();
|
||||
if (!IsInFlight())
|
||||
GetMotionMaster()->Clear();
|
||||
GetMotionMaster()->Remove(EFFECT_MOTION_TYPE);
|
||||
|
||||
if (Transport* transport = GetTransport())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user