From 6d2c447fa6c4fd73a0a210bceda7ab12b1fc809b Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sun, 10 Jan 2021 23:18:01 +0100 Subject: [PATCH] [MIRROR] Correctly transfer skillchips when ahealing someone (#2625) * Correctly transfer skillchips when ahealing someone (#56064) When ahealing someone via the player panel their skillchips weren't transfered correctly. The actually skillchip object was left in the old brain and eventually hard deleted. This caused a runtime when ahealing someone a second time (after the harddel). This then caused the target to actually have 2 brains because of the runtime while ahealing * Correctly transfer skillchips when ahealing someone Co-authored-by: Gamer025 <33846895+Gamer025@users.noreply.github.com> --- code/modules/mob/living/brain/brain_item.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/mob/living/brain/brain_item.dm b/code/modules/mob/living/brain/brain_item.dm index 592ba96ee67..76311a730a4 100644 --- a/code/modules/mob/living/brain/brain_item.dm +++ b/code/modules/mob/living/brain/brain_item.dm @@ -288,6 +288,8 @@ // Directly change the new holding_brain. skillchip.holding_brain = replacement_brain + //And move the actual obj into the new brain (contents) + skillchip.forceMove(replacement_brain) // Directly add them to the skillchip list in the new brain. LAZYADD(replacement_brain.skillchips, skillchip)