Disabled AI being able to open doors when its wireless is disabled (#15702)

* Fixing being able to remotely open doors when AI is in a intellicard and has his wireless disabled.

* Fixing being able to remotely open doors when AI is in a intellicard and has his wireless disabled.

* Update ai.dm
This commit is contained in:
Marko Pomorišac
2021-03-20 18:35:10 +00:00
committed by GitHub
parent cca4be869f
commit 5287d56092
+3
View File
@@ -1319,6 +1319,9 @@ GLOBAL_LIST_INIT(ai_verbs_default, list(
/mob/living/silicon/ai/proc/open_nearest_door(mob/living/target)
if(!istype(target))
return
if(check_unable(AI_CHECK_WIRELESS))
return
if(target && target.can_track())
var/obj/machinery/door/airlock/A = null