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())
|
if (CanEnableWarModeInArea())
|
||||||
{
|
{
|
||||||
RemovePlayerFlag(PlayerFlags.WarModeActive);
|
RemovePlayerFlag(PlayerFlags.WarModeActive);
|
||||||
RemoveAurasDueToSpell(auraOutside);
|
|
||||||
CastSpell(this, auraInside, true);
|
CastSpell(this, auraInside, true);
|
||||||
|
RemoveAurasDueToSpell(auraOutside);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetPlayerFlag(PlayerFlags.WarModeActive);
|
SetPlayerFlag(PlayerFlags.WarModeActive);
|
||||||
RemoveAurasDueToSpell(auraInside);
|
|
||||||
CastSpell(this, auraOutside, true);
|
CastSpell(this, auraOutside, true);
|
||||||
|
RemoveAurasDueToSpell(auraInside);
|
||||||
}
|
}
|
||||||
SetWarModeLocal(true);
|
SetWarModeLocal(true);
|
||||||
SetPvpFlag(UnitPVPStateFlags.PvP);
|
SetPvpFlag(UnitPVPStateFlags.PvP);
|
||||||
|
|||||||
Reference in New Issue
Block a user