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
This commit is contained in:
@@ -1665,8 +1665,7 @@ bool Player::TeleportTo(uint32 mapid, float x, float y, float z, float orientati
|
||||
// reset movement flags at teleport, because player will continue move with these flags after teleport
|
||||
SetUnitMovementFlags(GetUnitMovementFlags() & MOVEMENTFLAG_MASK_HAS_PLAYER_STATUS_OPCODE);
|
||||
DisableSpline();
|
||||
if (!IsInFlight())
|
||||
GetMotionMaster()->Clear();
|
||||
GetMotionMaster()->Remove(EFFECT_MOTION_TYPE);
|
||||
|
||||
if (Transport* transport = GetTransport())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user