diff --git a/game/commander/tasks/compound/attackbuildings.py b/game/commander/tasks/compound/attackbuildings.py index fe80dbf0..21e9a652 100644 --- a/game/commander/tasks/compound/attackbuildings.py +++ b/game/commander/tasks/compound/attackbuildings.py @@ -7,5 +7,9 @@ from game.htn import CompoundTask, Method class AttackBuildings(CompoundTask[TheaterState]): def each_valid_method(self, state: TheaterState) -> Iterator[Method[TheaterState]]: - for garrison in state.strike_targets: - yield [PlanStrike(garrison)] + for building in state.strike_targets: + # Ammo depots are targeted based on the needs of the front line by + # ReduceEnemyFrontLineCapacity. No reason to target them before that front + # line is active. + if not building.is_ammo_depot: + yield [PlanStrike(building)]