From f09b3c20c4b959bd97076b63faa13175f3ac38e6 Mon Sep 17 00:00:00 2001 From: Vero <73014819+vero5123@users.noreply.github.com> Date: Sun, 16 Jun 2024 07:24:50 -0700 Subject: [PATCH] Fixes cas targeting incorrect signals (#6459) # About the pull request Closes #6447, untested. # Explain why it's good for the game bug bad # Changelog :cl: fix: fixes cas being able to target shipside signals /:cl: --------- Co-authored-by: DOOM --- code/game/machinery/computer/dropship_weapons.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/game/machinery/computer/dropship_weapons.dm b/code/game/machinery/computer/dropship_weapons.dm index 5d61ed536618..abd3ab50b75c 100644 --- a/code/game/machinery/computer/dropship_weapons.dm +++ b/code/game/machinery/computer/dropship_weapons.dm @@ -621,7 +621,8 @@ . = list() var/datum/cas_iff_group/cas_group = GLOB.cas_groups[faction] for(var/datum/cas_signal/LT as anything in cas_group.cas_signals) - if(!istype(LT) || !LT.valid_signal()) + var/obj/object = LT.signal_loc + if(!istype(LT) || !LT.valid_signal() || !is_ground_level(object.z)) continue var/area/laser_area = get_area(LT.signal_loc) . += list(