mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Players: Fixed pvp talents being removed and immediately readded from players when entering/leaving Orgrimmar and Stormwind
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user