[MIRROR] Stops AIs from taking actions while depowered (#2813)

* Stops AIs from taking actions while depowered

* Update ai.dm
This commit is contained in:
CitadelStationBot
2017-09-18 01:45:59 -05:00
committed by Poojawa
parent 4bc6e9d522
commit d8a1fc936e
6 changed files with 75 additions and 73 deletions
+3 -2
View File
@@ -14,7 +14,8 @@
if(call(client.click_intercept, "InterceptClickOn")(src, params, A))
return
if(control_disabled || stat) return
if(control_disabled || incapacitated())
return
if(ismob(A))
ai_actual_track(A)
@@ -31,7 +32,7 @@
if(call(client.click_intercept, "InterceptClickOn")(src, params, A))
return
if(control_disabled || stat)
if(control_disabled || incapacitated())
return
var/turf/pixel_turf = get_turf_pixel(A)