Core/Misc: Rename AddXXXFlag updatefield functions to SetXXXFlag

Port From (https://github.com/TrinityCore/TrinityCore/commit/b47185cabfbdeeaf492bf2303635db07ce703785)
This commit is contained in:
hondacrx
2022-05-30 16:12:11 -04:00
parent f53c4cb009
commit 442da7511f
43 changed files with 188 additions and 185 deletions
@@ -691,7 +691,7 @@ namespace Game.BattleGrounds.Zones
if (dem)
{
if (start)
dem.AddUnitFlag(UnitFlags.NonAttackable | UnitFlags.Uninteractible);
dem.SetUnitFlag(UnitFlags.NonAttackable | UnitFlags.Uninteractible);
else
dem.RemoveUnitFlag(UnitFlags.NonAttackable | UnitFlags.Uninteractible);
}
@@ -772,7 +772,7 @@ namespace Game.BattleGrounds.Zones
if (CanInteractWithObject(objectId))
go.RemoveFlag(GameObjectFlags.NotSelectable);
else
go.AddFlag(GameObjectFlags.NotSelectable);
go.SetFlag(GameObjectFlags.NotSelectable);
}
}