Skip to content

Commit

Permalink
Ship Alert button targets doors by ID instead of area (#18419)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgmzeta committed Apr 6, 2024
1 parent 8d5a6c3 commit 5ac0869
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/obj/machinery/shipalert.dm
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ TYPEINFO(/obj/machinery/shipalert)
LAGCHECK(LAG_LOW)

/obj/machinery/shipalert/proc/do_lockdown(mob/user)
for_by_tcl(shutter, /obj/machinery/door/poddoor/pyro/shutters)
for_by_tcl(shutter, /obj/machinery/door/poddoor)
if (shutter.density)
continue
if (shutter.z != Z_LEVEL_STATION)
continue
if (!istypes(get_area(shutter), list(/area/station/turret_protected/ai, /area/station/bridge, /area/station/ai_monitored/armory)))
if (shutter.id != "lockdown" && shutter.id != "ai_core" && shutter.id == "armory")
continue
shutter.close()

Expand Down

0 comments on commit 5ac0869

Please sign in to comment.