Skip to content

Commit

Permalink
Fixes cas targeting incorrect signals (#6459)
Browse files Browse the repository at this point in the history
# 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 <N/A>
  • Loading branch information
vero5123 committed Jun 16, 2024
1 parent e309212 commit f09b3c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/game/machinery/computer/dropship_weapons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit f09b3c2

Please sign in to comment.