Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit b6a3bfe

Browse files
committed
disallows IPCs from using regenerative cores
1 parent 6a29a39 commit b6a3bfe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

code/modules/mining/equipment/regenerative_core.dm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@
7979
if(proximity_flag && ishuman(target))
8080
var/mob/living/carbon/human/H = target
8181
var/turf/user_turf = get_turf(user)
82+
if(isipc(target))
83+
return
8284
if(inert)
8385
to_chat(user, span_notice("[src] has decayed and can no longer be used to heal."))
8486
return
@@ -117,6 +119,8 @@
117119

118120
/obj/item/organ/regenerative_core/Insert(mob/living/carbon/M, special = 0, drop_if_replaced = TRUE)
119121
. = ..()
122+
if(isipc(M))
123+
return
120124
if(!preserved && !inert)
121125
preserved(TRUE)
122126
owner.visible_message(span_notice("[src] stabilizes as it's inserted."))

0 commit comments

Comments
 (0)