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:
hondacrx
2022-05-30 00:32:32 -04:00
parent 8f28b5df58
commit 14aa18ae65
4 changed files with 87 additions and 5 deletions
+2 -2
View File
@@ -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);
}
}