diff --git a/changelog.md b/changelog.md index ac055e45..48bcd600 100644 --- a/changelog.md +++ b/changelog.md @@ -25,6 +25,7 @@ Saves from 6.0.0 are compatible with 6.1.0 ## Fixes * **[Flight Planning]** Fixes CAS flights not having landing waypoints. +* **[Mission Generation]** Airbase and FOB capture is no longer blocked by grounded aircraft / helicopters. * **[Squadrons]** Fixed the livery for the VF-33 F-14A squadron. * **[Theaters]** Fixed Channel campaigns not having data for land/sea/obstacle boundaries, causing front lines to extend into forests and water. Requires a new campaign to get the fix. * **[UI]** Fixed an issue where manual submit of mission results did not end the mission correctly. diff --git a/game/missiongenerator/triggergenerator.py b/game/missiongenerator/triggergenerator.py index 85b519b7..25a87482 100644 --- a/game/missiongenerator/triggergenerator.py +++ b/game/missiongenerator/triggergenerator.py @@ -159,7 +159,9 @@ class TriggerGenerator: flag = self.get_capture_zone_flag() capture_trigger = TriggerCondition(Event.NoEvent, "Capture Trigger") capture_trigger.add_condition( - AllOfCoalitionOutsideZone(defending_coalition, trigger_zone.id) + AllOfCoalitionOutsideZone( + defending_coalition, trigger_zone.id, unit_type="GROUND" + ) ) capture_trigger.add_condition( PartOfCoalitionInZone( @@ -176,7 +178,9 @@ class TriggerGenerator: recapture_trigger = TriggerCondition(Event.NoEvent, "Capture Trigger") recapture_trigger.add_condition( - AllOfCoalitionOutsideZone(attacking_coalition, trigger_zone.id) + AllOfCoalitionOutsideZone( + attacking_coalition, trigger_zone.id, unit_type="GROUND" + ) ) recapture_trigger.add_condition( PartOfCoalitionInZone(