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
+1 -1
View File
@@ -3094,7 +3094,7 @@ namespace Game.Entities
if (m_deathExpireTime > now + PlayerConst.MaxDeathCount * PlayerConst.DeathExpireStep)
m_deathExpireTime = now + PlayerConst.MaxDeathCount * PlayerConst.DeathExpireStep - 1;
RemoveUnitFlag2(UnitFlags2.ForceMove);
RemoveUnitFlag2(UnitFlags2.ForceMovement);
// make sure the unit is considered out of combat for proper loading
ClearInCombat();