From dea8cd64df2d0eb6850bf042506b8ef478ef4feb Mon Sep 17 00:00:00 2001 From: killerwife Date: Fri, 7 Nov 2025 16:56:12 +0100 Subject: [PATCH] Movement: Fix flying in dalaran after disconnect (#23559) --- src/server/game/Handlers/CharacterHandler.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/server/game/Handlers/CharacterHandler.cpp b/src/server/game/Handlers/CharacterHandler.cpp index ac7ab2783..fa83cf317 100644 --- a/src/server/game/Handlers/CharacterHandler.cpp +++ b/src/server/game/Handlers/CharacterHandler.cpp @@ -1170,6 +1170,12 @@ void WorldSession::HandlePlayerLoginToCharInWorld(Player* pCurrChar) pCurrChar->RemoveUnitFlag(UNIT_FLAG_STUNNED); } + if (pCurrChar->GetPendingFlightChange() <= pCurrChar->GetMapChangeOrderCounter()) + { + if (!pCurrChar->HasIncreaseMountedFlightSpeedAura() && !pCurrChar->HasFlyAura()) + pCurrChar->m_movementInfo.RemoveMovementFlag(MOVEMENTFLAG_CAN_FLY); + } + pCurrChar->SendInitialPacketsBeforeAddToMap(); // necessary actions from AddPlayerToMap: