From 4a1873023abe4e0403ea4d8b23c2af460d01fd03 Mon Sep 17 00:00:00 2001 From: Taran Date: Fri, 12 May 2023 00:53:47 -0600 Subject: [PATCH] Prevents IPC husking (#21045) * prevents IPC husking * moves check to become_husk() --- code/modules/mob/living/carbon/human/human_death.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/mob/living/carbon/human/human_death.dm b/code/modules/mob/living/carbon/human/human_death.dm index f46f2970f1f..d159d8101b8 100644 --- a/code/modules/mob/living/carbon/human/human_death.dm +++ b/code/modules/mob/living/carbon/human/human_death.dm @@ -133,6 +133,9 @@ update_mutantrace() /mob/living/carbon/human/proc/become_husk(source) + if(ismachineperson(src)) + return + if(!HAS_TRAIT(src, TRAIT_HUSK)) ADD_TRAIT(src, TRAIT_HUSK, source) var/obj/item/organ/external/head/H = bodyparts_by_name["head"]