Core/Unit: Successfully (?) prevented the zombie apocalypse. Corpses can no longer gain HP. Closes #22409.
This commit is contained in:
1 parent
0d4c7d612b
commit
b7984e132c
1 file changed
+1
-1
@@ -9828,7 +9828,7 @@ void Unit::SetLevel(uint8 lvl)
|
||||
|
||||
void Unit::SetHealth(uint32 val)
|
||||
{
|
||||
if (getDeathState() == JUST_DIED)
|
||||
if (getDeathState() == JUST_DIED || getDeathState() == CORPSE)
|
||||
val = 0;
|
||||
else if (GetTypeId() == TYPEID_PLAYER && getDeathState() == DEAD)
|
||||
val = 1;
|
||||
|
||||
Reference in new issue
Block a user