diff --git a/Moose Development/Moose/Core/Set.lua b/Moose Development/Moose/Core/Set.lua index 9474d42b9..52c899bec 100644 --- a/Moose Development/Moose/Core/Set.lua +++ b/Moose Development/Moose/Core/Set.lua @@ -7845,17 +7845,16 @@ do -- SET_OPSGROUP if Event.IniDCSUnit and Event.IniDCSGroup then local DCSgroup=Event.IniDCSGroup --DCS#Group - + if DCSgroup:getInitialSize() == DCSgroup:getSize() then -- This seems to be not a good check as even for the first birth event, getSize returns the total number of units in the group. - + local groupname, group = self:AddInDatabase( Event ) - + if group and group:CountAliveUnits()==DCSgroup:getInitialSize() then if group and self:IsIncludeObject( group ) then self:Add( groupname, group ) end end - end end end diff --git a/Moose Development/Moose/Functional/Artillery.lua b/Moose Development/Moose/Functional/Artillery.lua index 02ad5f5d7..7425d3212 100644 --- a/Moose Development/Moose/Functional/Artillery.lua +++ b/Moose Development/Moose/Functional/Artillery.lua @@ -3546,7 +3546,7 @@ end -- @param #string To To state. function ARTY:onafterRespawn(Controllable, From, Event, To) self:_EventFromTo("onafterRespawn", Event, From, To) - + self:I("Respawning arty group") local group=self.Controllable --Wrapper.Group#GROUP -- Respawn group.