From 910800770954184743221755d71ef658d379c4bf Mon Sep 17 00:00:00 2001 From: DGamerL <108773801+DGamerL@users.noreply.github.com> Date: Sat, 19 Aug 2023 20:48:27 +0200 Subject: [PATCH] Fixes a runtime related to the RSG (#22021) * The fixening * Finally done --- code/modules/mob/living/carbon/human/human_mob.dm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/living/carbon/human/human_mob.dm b/code/modules/mob/living/carbon/human/human_mob.dm index 41efdd8892f..d04c0307ebb 100644 --- a/code/modules/mob/living/carbon/human/human_mob.dm +++ b/code/modules/mob/living/carbon/human/human_mob.dm @@ -1047,8 +1047,7 @@ if(HAS_TRAIT(src, TRAIT_PIERCEIMMUNE)) . = FALSE - if(HAS_TRAIT(wear_suit, TRAIT_PUNCTURE_IMMUNE)) - . = FALSE + var/obj/item/organ/external/affecting = get_organ(target_zone) var/fail_msg if(!affecting) @@ -1057,7 +1056,7 @@ if(affecting.is_robotic()) . = FALSE fail_msg = "That limb is robotic." - if(piercing) + if(wear_suit && !HAS_TRAIT(wear_suit, TRAIT_PUNCTURE_IMMUNE) && piercing) return TRUE if(target_zone == "head") if((head?.flags & THICKMATERIAL) && !penetrate_thick)