Fixes Emagged Borgs Not Having Instant Bolt/Shock (#22084)

* borg moment

* proc added

* steel review
This commit is contained in:
matttheficus
2023-08-23 21:00:15 -05:00
committed by GitHub
parent c65945e7dd
commit ce060435f4
3 changed files with 12 additions and 3 deletions
+2 -3
View File
@@ -204,10 +204,9 @@
open_close(user)
/obj/machinery/door/airlock/AICtrlClick(mob/living/silicon/user) // Bolts doors
if(!ai_control_check(user))
return
if(isAntag(user) || do_after(user, 3 SECONDS, target = src, allow_moving = TRUE))
if(user.can_instant_lockdown() || do_after(user, 3 SECONDS, target = src, allow_moving = TRUE))
toggle_bolt(user)
@@ -219,7 +218,7 @@
if(isElectrified())
electrify(0, user, TRUE) // un-shock
else
if(isAntag(user) || do_after(user, 3 SECONDS, target = src, allow_moving = TRUE))
if(user.can_instant_lockdown() || do_after(user, 3 SECONDS, target = src, allow_moving = TRUE))
electrify(-1, user, TRUE) // permanent shock + audio cue
playsound(loc, "sparks", 100, TRUE, SHORT_RANGE_SOUND_EXTRARANGE)