From bc92a2ade3d49278505963d26e84c7ea0b25d32b Mon Sep 17 00:00:00 2001 From: MetalStormGhost Date: Sun, 17 Sep 2023 18:55:52 +0300 Subject: [PATCH] Don't spawn flights for the other squadron in generate_pretense_aircraft(). --- game/pretense/pretenseaircraftgenerator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/game/pretense/pretenseaircraftgenerator.py b/game/pretense/pretenseaircraftgenerator.py index 3a956879..25408106 100644 --- a/game/pretense/pretenseaircraftgenerator.py +++ b/game/pretense/pretenseaircraftgenerator.py @@ -240,6 +240,8 @@ class PretenseAircraftGenerator: # Intentionally don't spawn anything at OffMapSpawns in Pretense if isinstance(squadron.location, OffMapSpawn): continue + if cp.coalition != squadron.coalition: + continue squadron.owned_aircraft += PRETENSE_AI_AIRCRAFT_PER_FLIGHT squadron.untasked_aircraft += PRETENSE_AI_AIRCRAFT_PER_FLIGHT