mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Core/Movement: apply falling movement flag only when the player was able to fly or levitate. This fixes an issue preventing players from casting spells when dismounting from a flying mount
This commit is contained in:
@@ -14350,10 +14350,10 @@ bool Unit::SetCanFly(bool enable, bool packetOnly)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (IsFlying() && !IsLevitating())
|
||||
SetFall(true);
|
||||
RemoveUnitMovementFlag(MOVEMENTFLAG_CAN_FLY | MOVEMENTFLAG_MASK_MOVING_FLY);
|
||||
RemoveExtraUnitMovementFlag(MOVEMENTFLAG2_CAN_SWIM_TO_FLY_TRANS);
|
||||
if (!IsLevitating())
|
||||
SetFall(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user