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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user