Core/Unit: Successfully (?) prevented the zombie apocalypse. Corpses can no longer gain HP. Closes #22409.

(cherry picked from commit f50a8e5926)
This commit is contained in:
Treeston
2018-09-12 14:28:49 +02:00
committed by Shauren
parent e889eff150
commit c8b11f7e3d
+1 -1
View File
@@ -8852,7 +8852,7 @@ void Unit::SetLevel(uint8 lvl)
void Unit::SetHealth(uint64 val)
{
if (getDeathState() == JUST_DIED)
if (getDeathState() == JUST_DIED || getDeathState() == CORPSE)
val = 0;
else if (GetTypeId() == TYPEID_PLAYER && getDeathState() == DEAD)
val = 1;