Fixes AI doing stuff while out of power or dead

This commit is contained in:
Tastyfish
2016-03-26 15:34:01 -04:00
parent 3f6e882f62
commit 9d9639dff6
2 changed files with 12 additions and 10 deletions
+4
View File
@@ -985,6 +985,10 @@ var/list/ai_verbs_default = list(
usr << "<span class='warning'>You are dead!</span>"
return 1
if(lacks_power())
usr << "<span class='warning'>Power systems failure!</span>"
return 1
if((flags & AI_CHECK_WIRELESS) && src.control_disabled)
usr << "<span class='warning'>Wireless control is disabled!</span>"
return 1