From b3fa367ac7a39617665f409730e2fc94b574ac76 Mon Sep 17 00:00:00 2001 From: ShizCalev Date: Tue, 14 Jul 2020 20:14:08 -0400 Subject: [PATCH] Fixes cameramob ghostize runtime (#52197) --- code/modules/mob/dead/observer/observer.dm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index aa0a7b30c0d..adf40cc07de 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -277,10 +277,14 @@ Works together with spawning an observer, noted above. ghost.key = key if(!can_reenter_corpse) // Disassociates observer mind from the body mind ghost.mind = null - else - ghost.mind.current?.med_hud_set_status() return ghost +/mob/living/ghostize(can_reenter_corpse = TRUE) + . = ..() + if(. && can_reenter_corpse) + var/mob/dead/observer/ghost = . + ghost.mind.current?.med_hud_set_status() + /* This is the proc mobs get to turn into a ghost. Forked from ghostize due to compatibility issues. */