diff --git a/changelog.md b/changelog.md index 6f59fdb1a..de02723b3 100644 --- a/changelog.md +++ b/changelog.md @@ -6,6 +6,7 @@ Saves from 11.x are not compatible with 12.0.0. * **[Campaign]** Removed deprecated settings for generating persistent and invulnerable AWACs and tankers. * **[Mods]** F/A-18 E/F/G Super Hornet mod version updated to 2.3. +* **[Campaign]** Do not allow aircraft from a captured control point to retreat if the captured control point has a damaged runway. ## Fixes diff --git a/game/theater/controlpoint.py b/game/theater/controlpoint.py index d821ffc62..ea86dae1b 100644 --- a/game/theater/controlpoint.py +++ b/game/theater/controlpoint.py @@ -764,6 +764,9 @@ def capture_aircraft(self, game: Game, airframe: AircraftType, count: int) -> No def aircraft_retreat_destination( self, squadron: Squadron ) -> Optional[ControlPoint]: + if not self.runway_is_operational(): + return None + closest = ObjectiveDistanceCache.get_closest_airfields(self) max_retreat_distance = squadron.aircraft.max_mission_range # Skip the first airbase because that's the airbase we're retreating