mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-05 23:13:06 +00:00
Added a check so that malf AIs can't start a APC hack if one is already in progress, as this was apparently possible if they had multiple APC windows open.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@276 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -673,6 +673,9 @@
|
||||
else if (href_list["malfhack"])
|
||||
var/mob/living/silicon/ai/malfai = usr
|
||||
if( istype(malfai, /mob/living/silicon/ai) && !src.aidisabled )
|
||||
if (malfai.malfhacking)
|
||||
malfai << "You are already hacking an APC."
|
||||
return
|
||||
malfai << "Beginning override of APC systems. This takes some time, and you cannot perform other actions during the process."
|
||||
malfai.malfhack = src
|
||||
malfai.malfhacking = 1
|
||||
|
||||
Reference in New Issue
Block a user