fix(Core/Player): explicitly clear CAN_FLY state onlogin (#26560)

This commit is contained in:
sogladev
2026-07-12 11:28:03 +02:00
committed by GitHub
parent b9f2d9e5dd
commit 7e5cb4ac24

View File

@@ -11673,6 +11673,12 @@ void Player::SendInitialPacketsAfterAddToMap()
auraList.front()->HandleEffect(this, AURA_EFFECT_HANDLE_SEND_FOR_CLIENT, true);
}
// Explicitly synchronize CAN_FLY state with client on login to prevent
// players from retaining flight ability after disconnecting during a
// teleport from a flyable to non-flyable zone (e.g. entering an instance).
if (!HasIncreaseMountedFlightSpeedAura() && !HasFlyAura())
SetCanFly(false);
// Fix mount, update block gets messed somewhere
{
if (!isBeingLoaded() && GetMountBlockId() && !HasMountedAura())