Properly cleared ORGAN_CUT_AWAY for prosthetics.

This commit is contained in:
MistakeNot4892
2021-02-24 10:21:34 +11:00
parent 6cb047103c
commit 0ee0779bfd
2 changed files with 12 additions and 0 deletions
@@ -154,7 +154,12 @@
last_special = world.time
drop_from_inventory(E)
E.replaced(src)
// Reconnect the organ and children as normally this is done with surgery.
E.status &= ~ORGAN_CUT_AWAY
for(var/obj/item/organ/external/child in E.children)
child.status &= ~ORGAN_CUT_AWAY
var/datum/gender/G = gender_datums[gender]
visible_message(
SPAN_NOTICE("\The [src] attaches \the [E] to [G.his] body!"),