From abf6990e8f84916ade9583a80228611064fbd942 Mon Sep 17 00:00:00 2001 From: smiki Date: Thu, 27 Aug 2026 15:51:56 +0200 Subject: [PATCH 1/4] [FIXED] SPAWN.BeforeTemplateSpawnFunc --- Moose Development/Moose/Core/Spawn.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Moose Development/Moose/Core/Spawn.lua b/Moose Development/Moose/Core/Spawn.lua index e89d53b63..ab50cae9b 100644 --- a/Moose Development/Moose/Core/Spawn.lua +++ b/Moose Development/Moose/Core/Spawn.lua @@ -1883,7 +1883,7 @@ function SPAWN:SpawnWithIndex( SpawnIndex, NoBirth ) if self.BeforeTemplateSpawnFunc then - self:BeforeTemplateSpawnFunc(SpawnTemplate, SpawnIndex) + self.BeforeTemplateSpawnFunc(SpawnTemplate, SpawnIndex) end end @@ -2011,14 +2011,14 @@ end -- -- Declare SpawnObject and call a function when a new Group is spawned. -- local SpawnObject = SPAWN:New( "SpawnObject" ) -- :InitLimit( 2, 10 ) --- :OnBeforeSpawnGroup( function( SpawnTemplate ) +-- :OnBeforeTemplateSpawnGroup( function( SpawnTemplate ) -- Tweaking the template units -- end -- ) -- :SpawnScheduled( 300, 0.3 ) -- function SPAWN:OnBeforeTemplateSpawnGroup( BeforeTemplateSpawnFunc ) - --self:F( "OnBeforeSpawnGroup" ) + --self:F( "OnBeforeTemplateSpawnGroup" ) self.BeforeTemplateSpawnFunc = BeforeTemplateSpawnFunc From 7bbd79cdb03b84f2dbe7d4b718a186c9db7f0760 Mon Sep 17 00:00:00 2001 From: leka1986 <83298840+leka1986@users.noreply.github.com> Date: Fri, 28 Aug 2026 14:26:12 +0200 Subject: [PATCH 2/4] Update Mantis.lua Return true at the first one found in _CheckAnyEWRAlive --- Moose Development/Moose/Functional/Mantis.lua | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/Moose Development/Moose/Functional/Mantis.lua b/Moose Development/Moose/Functional/Mantis.lua index a85774d7e..2e34ba601 100644 --- a/Moose Development/Moose/Functional/Mantis.lua +++ b/Moose Development/Moose/Functional/Mantis.lua @@ -1890,20 +1890,22 @@ do --- [Internal] Check if any EWR or AWACS is still alive -- @param #MANTIS self -- @return #boolean outcome - function MANTIS:_CheckAnyEWRAlive() - self:T(self.lid .. "_CheckAnyEWRAlive") - local alive = false - if self.EWR_Group:CountAlive() > 0 then - alive = true - end - if not alive and self.AWACS_Prefix then - local awacs = GROUP:FindByName(self.AWACS_Prefix) - if awacs and awacs:IsAlive() then - alive = true + function MANTIS:_CheckAnyEWRAlive() + self:T(self.lid .. "_CheckAnyEWRAlive") + + for _, group in pairs(self.EWR_Group:GetSet()) do + if group and group:IsAlive() then + return true + end end + if self.AWACS_Prefix then + local awacs = GROUP:FindByName(self.AWACS_Prefix) + if awacs and awacs:IsAlive() then + return true + end + end + return false end - return alive - end --- [Internal] Function to determine state of the advanced mode -- @param #MANTIS self From 399910bb410937ab410941296604729e9e9a268a Mon Sep 17 00:00:00 2001 From: smiki Date: Fri, 28 Aug 2026 18:30:47 +0200 Subject: [PATCH 3/4] [FIXED] SPAWN.BeforeTemplateSpawnFunc --- Moose Development/Moose/Core/Spawn.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Moose Development/Moose/Core/Spawn.lua b/Moose Development/Moose/Core/Spawn.lua index ab50cae9b..2c931e26b 100644 --- a/Moose Development/Moose/Core/Spawn.lua +++ b/Moose Development/Moose/Core/Spawn.lua @@ -1883,7 +1883,7 @@ function SPAWN:SpawnWithIndex( SpawnIndex, NoBirth ) if self.BeforeTemplateSpawnFunc then - self.BeforeTemplateSpawnFunc(SpawnTemplate, SpawnIndex) + self:BeforeTemplateSpawnFunc(SpawnTemplate, SpawnIndex) end end @@ -2011,7 +2011,7 @@ end -- -- Declare SpawnObject and call a function when a new Group is spawned. -- local SpawnObject = SPAWN:New( "SpawnObject" ) -- :InitLimit( 2, 10 ) --- :OnBeforeTemplateSpawnGroup( function( SpawnTemplate ) +-- :OnBeforeTemplateSpawnGroup( function( Spawn, SpawnTemplate, SpawnIndex ) -- Tweaking the template units -- end -- ) From d8f3e364ec8baf756a2e18ddc0ae77f2de448a16 Mon Sep 17 00:00:00 2001 From: Thomas <72444570+Applevangelist@users.noreply.github.com> Date: Sat, 29 Aug 2026 12:58:57 +0200 Subject: [PATCH 4/4] Update FlightControl.lua --- Moose Development/Moose/Ops/FlightControl.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moose Development/Moose/Ops/FlightControl.lua b/Moose Development/Moose/Ops/FlightControl.lua index 1bb0383cf..551996165 100644 --- a/Moose Development/Moose/Ops/FlightControl.lua +++ b/Moose Development/Moose/Ops/FlightControl.lua @@ -19,7 +19,7 @@ -- ### Author: **funkyfranky** -- -- === --- @module OPS.FlightControl +-- @module Ops.FlightControl -- @image OPS_FlightControl.png