mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user