From b6e37b9e6704deaaa7bb066dcbe08cb8b360a32e Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Sat, 26 Dec 2020 14:00:31 -0800 Subject: [PATCH] Exclude non-AA groups from SAM threat zones. Fixes https://github.com/Khopa/dcs_liberation/issues/666 --- game/theater/theatergroundobject.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/game/theater/theatergroundobject.py b/game/theater/theatergroundobject.py index 94f44276..7f4d4405 100644 --- a/game/theater/theatergroundobject.py +++ b/game/theater/theatergroundobject.py @@ -159,6 +159,9 @@ class TheaterGroundObject(MissionTarget): @property def threat_range(self) -> Distance: + if not self.might_have_aa: + return meters(0) + threat_range = meters(0) for group in self.groups: for u in group.units: