mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 13:07:46 +01:00
Fixes a runtime related to the RSG (#22021)
* The fixening * Finally done
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user