From d2a1bd038ffec4a0015b76ff5c8e7c7fd210d1d4 Mon Sep 17 00:00:00 2001 From: 1080pCat <96908085+1080pCat@users.noreply.github.com> Date: Sat, 21 Oct 2023 14:18:30 +1000 Subject: [PATCH] Prevents RCDs from blowing up on central command if ai triggers its ability (#22122) * i forgot about this * actually just no cc * contrabang review * Update Malf_Modules.dm --- code/game/gamemodes/malfunction/Malf_Modules.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/game/gamemodes/malfunction/Malf_Modules.dm b/code/game/gamemodes/malfunction/Malf_Modules.dm index 2b16ceba62a..19febda2574 100644 --- a/code/game/gamemodes/malfunction/Malf_Modules.dm +++ b/code/game/gamemodes/malfunction/Malf_Modules.dm @@ -376,7 +376,10 @@ /datum/action/innate/ai/destroy_rcds/Activate() for(var/obj/item/rcd/RCD in GLOB.rcd_list) - if(!istype(RCD, /obj/item/rcd/borg)) //Ensures that cyborg RCDs are spared. + if(istype(RCD, /obj/item/rcd/borg)) //Ensures that cyborg RCDs are spared. + continue + var/turf/RCD_turf = get_turf(RCD) + if(is_level_reachable(RCD_turf.z)) RCD.detonate_pulse() to_chat(owner, "RCD detonation pulse emitted.")