From 21c2bd1103c645e014be3964eb81ba54989100df Mon Sep 17 00:00:00 2001 From: smiki Date: Wed, 16 Jul 2025 23:17:47 +0200 Subject: [PATCH 1/2] [FIXED] AIRWING operational regardless of airbase coalition --- Moose Development/Moose/Ops/Legion.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moose Development/Moose/Ops/Legion.lua b/Moose Development/Moose/Ops/Legion.lua index 075866209..38490cbd0 100644 --- a/Moose Development/Moose/Ops/Legion.lua +++ b/Moose Development/Moose/Ops/Legion.lua @@ -2514,7 +2514,7 @@ function LEGION._GetCohorts(Legions, Cohorts, Operation, OpsQueue) local legion=_legion --Ops.Legion#LEGION -- Check that runway is operational. - local Runway=legion:IsAirwing() and legion:IsRunwayOperational() or true + local Runway=(legion:IsAirwing() and legion:IsRunwayOperational() and legion.airbase and legion.airbase:GetCoalition() == legion:GetCoalition())or true -- Legion has to be running. if legion:IsRunning() and Runway then From 2d96ba0f5670c51d03bb8877f53a8fc2d8aabbf2 Mon Sep 17 00:00:00 2001 From: smiki Date: Wed, 16 Jul 2025 23:39:04 +0200 Subject: [PATCH 2/2] [FIXED] AIRWING operational regardless of airbase coalition --- Moose Development/Moose/Ops/Commander.lua | 18 ++++++++++++------ Moose Development/Moose/Ops/Legion.lua | 9 ++++++--- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/Moose Development/Moose/Ops/Commander.lua b/Moose Development/Moose/Ops/Commander.lua index b7d30f298..a29b2538b 100644 --- a/Moose Development/Moose/Ops/Commander.lua +++ b/Moose Development/Moose/Ops/Commander.lua @@ -1670,9 +1670,12 @@ function COMMANDER:_GetCohorts(Legions, Cohorts, Operation) for _,_legion in pairs(Legions or {}) do local legion=_legion --Ops.Legion#LEGION - -- Check that runway is operational. - local Runway=legion:IsAirwing() and legion:IsRunwayOperational() or true - + -- Check that runway is operational. + local Runway=true + if legion:IsAirwing() then + Runway=legion:IsRunwayOperational() and legion.airbase and legion.airbase:GetCoalition() == legion:GetCoalition() + end + -- Legion has to be running. if legion:IsRunning() and Runway then @@ -1703,9 +1706,12 @@ function COMMANDER:_GetCohorts(Legions, Cohorts, Operation) for _,_legion in pairs(self.legions) do local legion=_legion --Ops.Legion#LEGION - -- Check that runway is operational. - local Runway=legion:IsAirwing() and legion:IsRunwayOperational() or true - + -- Check that runway is operational. + local Runway=true + if legion:IsAirwing() then + Runway=legion:IsRunwayOperational() and legion.airbase and legion.airbase:GetCoalition() == legion:GetCoalition() + end + -- Legion has to be running. if legion:IsRunning() and Runway then diff --git a/Moose Development/Moose/Ops/Legion.lua b/Moose Development/Moose/Ops/Legion.lua index 38490cbd0..b3c00592f 100644 --- a/Moose Development/Moose/Ops/Legion.lua +++ b/Moose Development/Moose/Ops/Legion.lua @@ -2513,9 +2513,12 @@ function LEGION._GetCohorts(Legions, Cohorts, Operation, OpsQueue) for _,_legion in pairs(Legions or {}) do local legion=_legion --Ops.Legion#LEGION - -- Check that runway is operational. - local Runway=(legion:IsAirwing() and legion:IsRunwayOperational() and legion.airbase and legion.airbase:GetCoalition() == legion:GetCoalition())or true - + -- Check that runway is operational. + local Runway=true + if legion:IsAirwing() then + Runway=legion:IsRunwayOperational() and legion.airbase and legion.airbase:GetCoalition() == legion:GetCoalition() + end + -- Legion has to be running. if legion:IsRunning() and Runway then