mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Exclude non-AA groups from SAM threat zones.
Fixes https://github.com/Khopa/dcs_liberation/issues/666
This commit is contained in:
parent
0c42227e5e
commit
b6e37b9e67
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user