From e042d114ddca1d231a1f7477dd6b16e1b1b40de6 Mon Sep 17 00:00:00 2001 From: Ty-Omaha Date: Mon, 15 Jul 2019 09:06:59 -0400 Subject: [PATCH] lol --- code/modules/events/grid_check.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/events/grid_check.dm b/code/modules/events/grid_check.dm index 18e8404cb3c..15b20c6286e 100644 --- a/code/modules/events/grid_check.dm +++ b/code/modules/events/grid_check.dm @@ -46,6 +46,9 @@ if(C.cell) C.cell.charge = 0 for(var/obj/machinery/power/P in GLOB.machines) + var/area/current_area = get_area(P) + if((current_area.type in skipped_areas_apc) || !is_station_level(P.z)) + continue P.malfunction = TRUE /proc/power_restore(var/announce = 1) @@ -70,6 +73,9 @@ S.update_icon() S.power_change() for(var/obj/machinery/power/P in GLOB.machines) + var/area/current_area = get_area(P) + if((current_area.type in skipped_areas_apc) || !is_station_level(P.z)) + continue P.malfunction = FALSE /proc/power_restore_quick(var/announce = 1)