Core/Players: Fixed pvp talents being removed and immediately readded from players when entering/leaving Orgrimmar and Stormwind

This commit is contained in:
Shauren
2022-09-29 20:51:17 +02:00
parent e0b7dfbecb
commit 0c90378cec

View File

@@ -28434,14 +28434,14 @@ void Player::UpdateWarModeAuras()
if (CanEnableWarModeInArea())
{
RemovePlayerFlag(PLAYER_FLAGS_WAR_MODE_ACTIVE);
RemoveAurasDueToSpell(auraOutside);
CastSpell(this, auraInside, true);
RemoveAurasDueToSpell(auraOutside);
}
else
{
SetPlayerFlag(PLAYER_FLAGS_WAR_MODE_ACTIVE);
RemoveAurasDueToSpell(auraInside);
CastSpell(this, auraOutside, true);
RemoveAurasDueToSpell(auraInside);
}
SetWarModeLocal(true);
SetPvpFlag(UNIT_BYTE2_FLAG_PVP);