mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Avoid autoplanner planning AirAssault against carriers
This commit is contained in:
parent
a06e9d0ec7
commit
db9cf441fb
@ -11,7 +11,7 @@ from game.theater import ControlPoint
|
||||
@dataclass
|
||||
class PlanAirAssault(PackagePlanningTask[ControlPoint]):
|
||||
def preconditions_met(self, state: TheaterState) -> bool:
|
||||
if self.target not in state.vulnerable_control_points:
|
||||
if self.target not in state.vulnerable_control_points or self.target.is_fleet:
|
||||
return False
|
||||
if not self.target_area_preconditions_met(state):
|
||||
return False
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user