[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>
This commit is contained in:
SkyratBot
2021-01-10 23:18:01 +01:00
committed by GitHub
co-authored by Gamer025
parent b5444c45ce
commit 6d2c447fa6
@@ -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)