Skip to content

Commit

Permalink
disallows IPCs from using regenerative cores (#22824)
Browse files Browse the repository at this point in the history
  • Loading branch information
cowbot92 authored Dec 1, 2024
1 parent aa3e861 commit b7c1200
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/modules/mining/equipment/regenerative_core.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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."))
Expand Down

0 comments on commit b7c1200

Please sign in to comment.