From 049f8c758f67f1f52753e1ca288905b3516b895c Mon Sep 17 00:00:00 2001 From: hondacrx Date: Wed, 3 Nov 2021 11:55:52 -0400 Subject: [PATCH] Core/Unit: Successfully (?) prevented the zombie apocalypse. Corpses can no longer gain HP. Port From (https://github.com/TrinityCore/TrinityCore/commit/c8b11f7e3db8b40a0c02a759d722dff0f7c55fe8) --- Source/Game/Entities/StatSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Entities/StatSystem.cs b/Source/Game/Entities/StatSystem.cs index 38b274d9b..804930cf4 100644 --- a/Source/Game/Entities/StatSystem.cs +++ b/Source/Game/Entities/StatSystem.cs @@ -466,7 +466,7 @@ namespace Game.Entities public ulong GetHealth() { return m_unitData.Health; } public void SetHealth(ulong val) { - if (GetDeathState() == DeathState.JustDied) + if (GetDeathState() == DeathState.JustDied || GetDeathState() == DeathState.Corpse) val = 0; else if (IsTypeId(TypeId.Player) && GetDeathState() == DeathState.Dead) val = 1;