Core/Creature: Disallow nearly all non-static flags on DB side
Port From (https://github.com/TrinityCore/TrinityCore/commit/47bcacd00a3124e801672f57afd4557ccbbe93b6)
This commit is contained in:
@@ -2273,13 +2273,13 @@ namespace Game.Spells
|
||||
Unit target = aurApp.GetTarget();
|
||||
|
||||
if (apply)
|
||||
target.AddUnitFlag2(UnitFlags2.ForceMove);
|
||||
target.AddUnitFlag2(UnitFlags2.ForceMovement);
|
||||
else
|
||||
{
|
||||
// do not remove unit flag if there are more than this auraEffect of that kind on unit on unit
|
||||
if (target.HasAuraType(GetAuraType()))
|
||||
return;
|
||||
target.RemoveUnitFlag2(UnitFlags2.ForceMove);
|
||||
target.RemoveUnitFlag2(UnitFlags2.ForceMovement);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user