Core/Players: Fixed pvp flag being missing when logging in with war mode disabled but pvp enabled

Closes #29336
This commit is contained in:
Shauren
2023-10-19 18:32:16 +02:00
parent a3702cc526
commit 4abcf7fb33

View File

@@ -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);
}
}