Fixes a runtime related to the RSG (#22021)

* The fixening

* Finally done
This commit is contained in:
DGamerL
2023-08-19 13:48:27 -05:00
committed by GitHub
parent e378f31510
commit 9108007709
@@ -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)