From 32b8af693df78f5e00fb1d781236b803e31b2af2 Mon Sep 17 00:00:00 2001 From: Putnam Date: Sun, 29 Mar 2020 06:52:44 -0700 Subject: [PATCH] Makes AI-hacked-law sabotage only run if there's AI --- code/game/gamemodes/objective_sabotage.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/game/gamemodes/objective_sabotage.dm b/code/game/gamemodes/objective_sabotage.dm index 5e9ec85ff1..d2cdd2e029 100644 --- a/code/game/gamemodes/objective_sabotage.dm +++ b/code/game/gamemodes/objective_sabotage.dm @@ -98,6 +98,9 @@ special_equipment = list(/obj/item/aiModule/syndicate) excludefromjob = list("Chief Engineer","Research Director","Head of Personnel","Captain","Chief Medical Officer","Head Of Security") +/datum/sabotage_objective/ai_law/can_run() + return length(active_ais()) + /datum/sabotage_objective/ai_law/check_conditions() for (var/i in GLOB.ai_list) var/mob/living/silicon/ai/aiPlayer = i