From 9bd85aadfac00d172d158bbf96ccfd979ca03e43 Mon Sep 17 00:00:00 2001 From: Afevis Date: Mon, 6 May 2024 23:28:52 -0400 Subject: [PATCH] Fixes inducers breaking when trying to charge a PDA/Modular Computer (#83087) ## About The Pull Request Fixes #83035 - attached_circuit is not guaranteed to exist & we should just pass the parent in that case. ## Why It's Good For The Game Inducers no longer break permanently due to this issue. ## Changelog :cl: ShizCalev fix: Inducers no longer break completely after trying to charge a PDA with them. /:cl: --------- Co-authored-by: Ghom <42542238+Ghommie@ users.noreply.github.com> --- code/datums/components/shell.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/datums/components/shell.dm b/code/datums/components/shell.dm index 5b6361b9ee6..20fbeb73927 100644 --- a/code/datums/components/shell.dm +++ b/code/datums/components/shell.dm @@ -173,7 +173,7 @@ if(istype(item, /obj/item/inducer)) var/obj/item/inducer/inducer = item - INVOKE_ASYNC(inducer, TYPE_PROC_REF(/obj/item, attack_atom), attached_circuit, attacker, list()) + INVOKE_ASYNC(inducer, TYPE_PROC_REF(/obj/item, attack_atom), attached_circuit || parent, attacker, list()) return COMPONENT_NO_AFTERATTACK if(attached_circuit)