mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-11 09:22:41 +00:00
## About The Pull Request Sets `implant` to `null` in `/datum/surgery_step/extract_implant/success()` after removing it. Surgery steps are global objects, so the cached implant object would still exist upon entering `/datum/surgery_step/extract_implant/preop()`. `preop()` was also changed to set the `implant` member to `null` if no implant is found, so that the implant state is always valid as soon as the step is started. ## Why It's Good For The Game Prevents removing the same implant from a mob several times. The bug also allowed you to attempt to remove the same implant from a _different_ mob, which can cause a runtime if the mob does not have an implants list. I don't believe this was actually duplicating the implant, however I was able to get the same implant to appear in multiple implant cases, which I think were just holding a reference to the same implant. ## Changelog 🆑 sushi fix: implants can no longer be removed from the same mob (or other mobs!) multiple times /🆑