Skip to content

Commit

Permalink
Fixes sentry targeting xenos inside of vents (#6223)
Browse files Browse the repository at this point in the history
# About the pull request

Closes #6110, #5556. Honestly I was unable to reproduce the issue, but
this seems like it should work regardless of the original problem.


# Changelog
:cl:
fix: Fixes sentries firing at xenos while vent crawling.
/:cl:

---------

Co-authored-by: DOOM <N/A>
  • Loading branch information
vero5123 authored May 3, 2024
1 parent 1b19ddf commit 0fa5955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/defenses/sentry.dm
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@
targets.Remove(A)
continue

if(M.get_target_lock(faction_group) || M.invisibility || HAS_TRAIT(M, TRAIT_ABILITY_BURROWED))
if(M.get_target_lock(faction_group) || M.invisibility || HAS_TRAIT(M, TRAIT_ABILITY_BURROWED) || M.is_ventcrawling)
if(M == target)
target = null
targets.Remove(M)
Expand Down

0 comments on commit 0fa5955

Please sign in to comment.