From 3143f2a4f252cc2bc3b5f4dd0608e16a49f4baed Mon Sep 17 00:00:00 2001 From: Chap Date: Sun, 27 Oct 2024 02:22:42 +0100 Subject: [PATCH] [FIX] AI can no longer toggle floorbolts while dead (#27191) * AI can no longer toggle floorbolts while dead. * Added a to_chat * Switch to the check_unable proc. * No need for the double to_chat * Actually nevermind --------- Co-authored-by: Adrer --- code/modules/mob/living/silicon/ai/ai_mob.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/mob/living/silicon/ai/ai_mob.dm b/code/modules/mob/living/silicon/ai/ai_mob.dm index 3fc1f085738..0e904215b1d 100644 --- a/code/modules/mob/living/silicon/ai/ai_mob.dm +++ b/code/modules/mob/living/silicon/ai/ai_mob.dm @@ -641,6 +641,10 @@ GLOBAL_LIST_INIT(ai_verbs_default, list( set category = "AI Commands" set name = "Toggle Floor Bolts" + if(stat == DEAD) + to_chat(src, "You are dead!") + return + if(!isturf(loc)) // if their location isn't a turf return // stop