Core/Players: Fixed pvp flag being missing when logging in with war mode disabled but pvp enabled
Port From (https://github.com/TrinityCore/TrinityCore/commit/4abcf7fb337ac2ebe0a121f5ea19bb647addd7c0)
This commit is contained in:
@@ -5119,7 +5119,8 @@ namespace Game.Entities
|
||||
RemoveAurasDueToSpell(auraOutside);
|
||||
RemoveAurasDueToSpell(auraInside);
|
||||
RemovePlayerFlag(PlayerFlags.WarModeActive);
|
||||
RemovePvpFlag(UnitPVPStateFlags.PvP);
|
||||
if (!HasPlayerFlag(PlayerFlags.InPVP))
|
||||
RemovePvpFlag(UnitPVPStateFlags.PvP);
|
||||
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2.WarModeLeave);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user