Small fix to recent Posibrain changes (#5908)

## About The Pull Request

Quick PR to fix a oversight and a few bugs, thanks artur.

## Why It's Good For The Game

Oversight and bug fix = good

## Proof Of Testing

works on my machine

## Changelog

🆑
fix: Fixes your brain falling out as a synth when choosing circuit or
MMI
/🆑

---------

Co-authored-by: Artur Lang <24881678+Arturlang@users.noreply.github.com>
This commit is contained in:
Vanilla1040
2026-07-07 12:03:46 +02:00
committed by GitHub
co-authored by Artur Lang
parent dafce56eb8
commit e962965c1b
2 changed files with 27 additions and 12 deletions
@@ -205,8 +205,12 @@
/datum/surgery_operation/limb/organ_manipulation/proc/on_success_insert_organ(obj/item/bodypart/limb, mob/living/surgeon, obj/item/organ/organ)
//Bubber Edit Start, Checks if the type attempted to be inserted is a positronic or not
if(istype(organ, /obj/item/mmi/posibrain))
if(istype(organ, /obj/item/mmi))
organ = new /obj/item/organ/brain/synth/mmi(null, organ)
else if(istype(organ, /obj/item/mmi/posibrain))
organ = new /obj/item/organ/brain/synth(null, organ)
else if(istype(organ, /obj/item/mmi/posibrain/circuit))
organ = new /obj/item/organ/brain/synth/circuit(null, organ)
//Bubber Edit End
surgeon.temporarilyRemoveItemFromInventory(organ, TRUE)
organ.pre_surgical_insertion(surgeon, limb, limb.body_zone)