From 222215880cbd851645c3dd81da7017ab05153b78 Mon Sep 17 00:00:00 2001 From: Krausus Date: Wed, 10 Jun 2015 10:44:35 -0400 Subject: [PATCH] Fixes traitor panel "undressing" organs --- code/datums/mind.dm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/code/datums/mind.dm b/code/datums/mind.dm index a096bd6a5f3..b739112e5f0 100644 --- a/code/datums/mind.dm +++ b/code/datums/mind.dm @@ -1069,8 +1069,14 @@ datum/mind else if (href_list["common"]) switch(href_list["common"]) if("undress") - for(var/obj/item/W in current) - current.unEquip(W, 1) + if(istype(current, /mob/living/carbon/human)) + var/mob/living/carbon/human/H = current + // Don't "undress" organs right out of the body + for(var/obj/item/W in H.contents - (H.organs | H.internal_organs)) + current.unEquip(W, 1) + else + for(var/obj/item/W in current) + current.unEquip(W, 1) if("takeuplink") take_uplink() memory = null//Remove any memory they may have had.