diff --git a/code/modules/surgery/implant.dm b/code/modules/surgery/implant.dm index a8667638dea..5eeba4ab50b 100644 --- a/code/modules/surgery/implant.dm +++ b/code/modules/surgery/implant.dm @@ -175,11 +175,11 @@ to_chat(user, "Central command would kill you if you implanted the disk into someone.") return 0//fail - if(istype(tool, /obj/item/weapon/storage/box)) - for(var/obj/item/I in tool.contents) - if(istype(I, /obj/item/weapon/disk/nuclear)) - to_chat(user, "Central command would kill you if you implanted the disk into someone. Even if in a box. Especially in a box.") - return 0//fail + if(istype(tool, /obj/item/weapon/storage)) + var/obj/item/weapon/disk/nuclear/datdisk = locate() in tool + if(datdisk) + to_chat(user, "Central command would kill you if you implanted the disk into someone. Even if in a box. Especially in a box.") + return 0//fail if(istype(tool,/obj/item/organ)) to_chat(user, "This isn't the type of surgery for organ transplants!")