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
+2 -2
View File
@@ -383,10 +383,10 @@ namespace Game.AI
if (point)
{
point.SetObjectScale(SharedConst.BoundaryVisualizeCreatureScale);
point.AddUnitFlag(UnitFlags.Stunned);
point.SetUnitFlag(UnitFlags.Stunned);
point.SetImmuneToAll(true);
if (!hasOutOfBoundsNeighbor)
point.AddUnitFlag(UnitFlags.Uninteractible);
point.SetUnitFlag(UnitFlags.Uninteractible);
}
Q.Remove(front);
}
+1 -1
View File
@@ -402,7 +402,7 @@ namespace Game.AI
if (me.Attack(target, true))
{
me.AddUnitFlag(UnitFlags.PetInCombat); // on player pets, this flag indicates we're actively going after a target - that's what we're doing, so set it
me.SetUnitFlag(UnitFlags.PetInCombat); // on player pets, this flag indicates we're actively going after a target - that's what we're doing, so set it
// Play sound to let the player know the pet is attacking something it picked on its own
if (me.HasReactState(ReactStates.Aggressive) && !me.GetCharmInfo().IsCommandAttack())