Core/Units: Added helper functions to modify UNIT_FLAG_UNINTERACTIBLE
Port From (https://github.com/TrinityCore/TrinityCore/commit/88ff97c1f96381565c47f8ca1993bdc7fce19fd6)
This commit is contained in:
@@ -629,9 +629,15 @@ namespace Game.BattleGrounds.Zones
|
||||
if (dem)
|
||||
{
|
||||
if (start)
|
||||
dem.SetUnitFlag(UnitFlags.NonAttackable | UnitFlags.Uninteractible);
|
||||
{
|
||||
dem.SetUnitFlag(UnitFlags.NonAttackable);
|
||||
dem.SetUninteractible(true);
|
||||
}
|
||||
else
|
||||
dem.RemoveUnitFlag(UnitFlags.NonAttackable | UnitFlags.Uninteractible);
|
||||
{
|
||||
dem.RemoveUnitFlag(UnitFlags.NonAttackable);
|
||||
dem.SetUninteractible(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user