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
This commit is contained in:
1080pCat
2023-10-20 23:18:30 -05:00
committed by GitHub
parent 97453a5b61
commit d2a1bd038f
@@ -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, "<span class='danger'>RCD detonation pulse emitted.</span>")