fix: Unfrozen mobs keep their bodies. (#26663)

This commit is contained in:
warriorstar-orion
2024-09-03 09:19:39 -04:00
committed by GitHub
parent a2a1aa0489
commit 3ef9abf196
+6
View File
@@ -64,6 +64,12 @@ GLOBAL_LIST_EMPTY(frozen_atom_list) // A list of admin-frozen atoms.
revive()
/mob/living/simple_animal/admin_Freeze(admin)
// If we were frozen before this call, make sure we
// reset our health before attempting a rejuvenate,
// as removing status effects can perform stat calls.
if(frozen && del_on_death)
health = admin_prev_health
if(..()) // The result of the parent call here will be the value of the mob's `frozen` variable after they get (un)frozen.
admin_prev_health = health
health = 0