mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
Movement: Fix flying in dalaran after disconnect (#23559)
This commit is contained in:
@@ -1170,6 +1170,12 @@ void WorldSession::HandlePlayerLoginToCharInWorld(Player* pCurrChar)
|
|||||||
pCurrChar->RemoveUnitFlag(UNIT_FLAG_STUNNED);
|
pCurrChar->RemoveUnitFlag(UNIT_FLAG_STUNNED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pCurrChar->GetPendingFlightChange() <= pCurrChar->GetMapChangeOrderCounter())
|
||||||
|
{
|
||||||
|
if (!pCurrChar->HasIncreaseMountedFlightSpeedAura() && !pCurrChar->HasFlyAura())
|
||||||
|
pCurrChar->m_movementInfo.RemoveMovementFlag(MOVEMENTFLAG_CAN_FLY);
|
||||||
|
}
|
||||||
|
|
||||||
pCurrChar->SendInitialPacketsBeforeAddToMap();
|
pCurrChar->SendInitialPacketsBeforeAddToMap();
|
||||||
|
|
||||||
// necessary actions from AddPlayerToMap:
|
// necessary actions from AddPlayerToMap:
|
||||||
|
|||||||
Reference in New Issue
Block a user