mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Players: Fixed pvp flag being missing when logging in with war mode disabled but pvp enabled
Closes #29336
This commit is contained in:
@@ -29714,7 +29714,8 @@ void Player::UpdateWarModeAuras()
|
||||
RemoveAurasDueToSpell(auraOutside);
|
||||
RemoveAurasDueToSpell(auraInside);
|
||||
RemovePlayerFlag(PLAYER_FLAGS_WAR_MODE_ACTIVE);
|
||||
RemovePvpFlag(UNIT_BYTE2_FLAG_PVP);
|
||||
if (!HasPlayerFlag(PLAYER_FLAGS_IN_PVP))
|
||||
RemovePvpFlag(UNIT_BYTE2_FLAG_PVP);
|
||||
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2::WarModeLeave);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user