From b7c12004787b85cda97171303875b3b4eb2840f7 Mon Sep 17 00:00:00 2001 From: cowbot92 <75333826+cowbot92@users.noreply.github.com> Date: Sun, 1 Dec 2024 13:24:34 -0500 Subject: [PATCH] disallows IPCs from using regenerative cores (#22824) --- code/modules/mining/equipment/regenerative_core.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/mining/equipment/regenerative_core.dm b/code/modules/mining/equipment/regenerative_core.dm index ad72b11c3d3b..91152a41f4e8 100644 --- a/code/modules/mining/equipment/regenerative_core.dm +++ b/code/modules/mining/equipment/regenerative_core.dm @@ -79,6 +79,8 @@ if(proximity_flag && ishuman(target)) var/mob/living/carbon/human/H = target var/turf/user_turf = get_turf(user) + if(isipc(target)) + return if(inert) to_chat(user, span_notice("[src] has decayed and can no longer be used to heal.")) return @@ -117,6 +119,8 @@ /obj/item/organ/regenerative_core/Insert(mob/living/carbon/M, special = 0, drop_if_replaced = TRUE) . = ..() + if(isipc(M)) + return if(!preserved && !inert) preserved(TRUE) owner.visible_message(span_notice("[src] stabilizes as it's inserted."))