Fixes ghosts' boo ability going on cooldown when the light they tried to flicker didn't flick (#62965)

This commit is contained in:
ShizCalev
2021-11-23 17:58:43 -08:00
committed by GitHub
parent 47dd9557f3
commit e100f3ca8c
7 changed files with 13 additions and 12 deletions
-1
View File
@@ -1497,7 +1497,6 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/power/apc/auto_name, APC_PIXEL_OFFSET
for(var/obj/machinery/light/L in area)
L.on = TRUE
L.break_light_tube()
L.on = FALSE
stoplag()
/obj/machinery/power/apc/proc/shock(mob/user, prb)
+1
View File
@@ -414,6 +414,7 @@
sleep(rand(5, 15))
on = (status == LIGHT_OK)
update(FALSE)
. = TRUE //did we actually flicker?
flickering = FALSE
// ai attack - make lights flicker, because why not