Fix friendly AI shooting at fires at front-line

This commit is contained in:
Raffson 2024-02-18 22:45:12 +01:00
parent e7e43a95fb
commit dbd9776aff
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99
2 changed files with 2 additions and 1 deletions

View File

@ -52,6 +52,7 @@
* **[Modding]** Swedish Military Assets Pack air defence presets are now correctly removed from the faction when the mod is disabled.
* **[Mission Generation]** Naval aircraft not always returning to carrier
* **[Mission Generation]** AI AirLift aircraft crashing into terrain due to insufficient waypoints
* **[Mission Generation]** Fix friendly AI shooting at fires on the front-line
# Retribution v1.2.1 (hotfix)

View File

@ -73,7 +73,7 @@ class VisualsGenerator:
self.game = game
def _generate_frontline_smokes(self) -> None:
country = self.mission.country(self.game.red.faction.country.name)
country = list(self.mission.coalition["neutrals"].countries.values())[0]
for front_line in self.game.theater.conflicts():
from_cp = front_line.blue_cp
to_cp = front_line.red_cp