diff --git a/changelog.md b/changelog.md index 88413c68..6c11bd83 100644 --- a/changelog.md +++ b/changelog.md @@ -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) diff --git a/game/missiongenerator/visualsgenerator.py b/game/missiongenerator/visualsgenerator.py index 741a692f..02c06155 100644 --- a/game/missiongenerator/visualsgenerator.py +++ b/game/missiongenerator/visualsgenerator.py @@ -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