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

Port From (https://github.com/TrinityCore/TrinityCore/commit/0c90378cec45c94c846bb86d30022e2ded31d9cd)
This commit is contained in:
hondacrx
2022-10-01 16:35:47 -04:00
parent eb7f0862f8
commit fa4a96769e
+2 -2
View File
@@ -4680,14 +4680,14 @@ namespace Game.Entities
if (CanEnableWarModeInArea())
{
RemovePlayerFlag(PlayerFlags.WarModeActive);
RemoveAurasDueToSpell(auraOutside);
CastSpell(this, auraInside, true);
RemoveAurasDueToSpell(auraOutside);
}
else
{
SetPlayerFlag(PlayerFlags.WarModeActive);
RemoveAurasDueToSpell(auraInside);
CastSpell(this, auraOutside, true);
RemoveAurasDueToSpell(auraInside);
}
SetWarModeLocal(true);
SetPvpFlag(UnitPVPStateFlags.PvP);