[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 <adrermail@gmail.com>
This commit is contained in:
Chap
2024-10-27 01:22:42 +00:00
committed by GitHub
co-authored by Adrer
parent 1cf9cca0cf
commit 3143f2a4f2
@@ -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, "<span class='warning'>You are dead!</span>")
return
if(!isturf(loc)) // if their location isn't a turf
return // stop