Fixes cameramob ghostize runtime (#52197)

This commit is contained in:
ShizCalev
2020-07-14 20:14:08 -04:00
committed by GitHub
parent 7b601d1100
commit b3fa367ac7
+6 -2
View File
@@ -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.
*/