Skip to content

Commit

Permalink
fix: Unfrozen mobs keep their bodies. (#26663)
Browse files Browse the repository at this point in the history
  • Loading branch information
warriorstar-orion authored Sep 3, 2024
1 parent a2a1aa0 commit 3ef9abf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/modules/admin/verbs/freeze.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ef9abf

Please sign in to comment.