mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 11:05:03 +01:00
fix: Unfrozen mobs keep their bodies. (#26663)
This commit is contained in:
committed by
GitHub
parent
a2a1aa0489
commit
3ef9abf196
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user