Core/Unit: cleanup UnitState enum

Port From (https://github.com/TrinityCore/TrinityCore/commit/1f0dc07ef183eefab5ad2c4a4f857d5184f5ad6f)
This commit is contained in:
hondacrx
2020-05-06 14:46:11 -04:00
parent 9889415e6b
commit e81b1e3ba7
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -4383,7 +4383,7 @@ namespace Game.Spells
pet.SetDynamicFlags(UnitDynFlags.HideModel);
pet.RemoveUnitFlag(UnitFlags.Skinnable);
pet.SetDeathState(DeathState.Alive);
pet.ClearUnitState(UnitState.AllState);
pet.ClearUnitState(UnitState.AllErasable);
pet.SetHealth(pet.CountPctFromMaxHealth(damage));
pet.InitializeAI();