Core/Misc: Rename AddXXXFlag updatefield functions to SetXXXFlag
Port From (https://github.com/TrinityCore/TrinityCore/commit/b47185cabfbdeeaf492bf2303635db07ce703785)
This commit is contained in:
@@ -516,7 +516,7 @@ namespace Game.BattleFields
|
||||
{
|
||||
creature.CombatStop();
|
||||
creature.SetReactState(ReactStates.Passive);
|
||||
creature.AddUnitFlag(UnitFlags.NonAttackable | UnitFlags.Uninteractible);
|
||||
creature.SetUnitFlag(UnitFlags.NonAttackable | UnitFlags.Uninteractible);
|
||||
creature.DisappearAndDie();
|
||||
creature.SetVisible(false);
|
||||
}
|
||||
@@ -531,7 +531,7 @@ namespace Game.BattleFields
|
||||
creature.SetReactState(ReactStates.Aggressive);
|
||||
else
|
||||
{
|
||||
creature.AddUnitFlag(UnitFlags.NonAttackable);
|
||||
creature.SetUnitFlag(UnitFlags.NonAttackable);
|
||||
creature.SetReactState(ReactStates.Passive);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user