Exclude non-AA groups from SAM threat zones.

Fixes https://github.com/Khopa/dcs_liberation/issues/666
This commit is contained in:
Dan Albert 2020-12-26 14:00:31 -08:00
parent 0c42227e5e
commit b6e37b9e67

View File

@ -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: