From c6b7b957d173c9bc269995b23d09e7153626b146 Mon Sep 17 00:00:00 2001 From: mrSkortch Date: Wed, 3 Apr 2024 16:53:09 -0600 Subject: [PATCH] groupIsDead fix FIXED: mist.groupIsDead to account for instances where isExist() still returns true. --- mist.lua | 4 ++-- mist_4_5_125.lua => mist_4_5_126.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename mist_4_5_125.lua => mist_4_5_126.lua (99%) diff --git a/mist.lua b/mist.lua index 850a4cc..5f1c5b4 100644 --- a/mist.lua +++ b/mist.lua @@ -35,7 +35,7 @@ mist = {} -- don't change these mist.majorVersion = 4 mist.minorVersion = 5 -mist.build = 125 +mist.build = 126 -- forward declaration of log shorthand local log @@ -9227,7 +9227,7 @@ do -- group tasks scope function mist.groupIsDead(groupName) -- copy more or less from on station local gp = Group.getByName(groupName) if gp then - if #gp:getUnits() > 0 or gp:isExist() == true then + if #gp:getUnits() > 0 and gp:isExist() == true then return false end end diff --git a/mist_4_5_125.lua b/mist_4_5_126.lua similarity index 99% rename from mist_4_5_125.lua rename to mist_4_5_126.lua index 850a4cc..243bcca 100644 --- a/mist_4_5_125.lua +++ b/mist_4_5_126.lua @@ -9227,7 +9227,7 @@ do -- group tasks scope function mist.groupIsDead(groupName) -- copy more or less from on station local gp = Group.getByName(groupName) if gp then - if #gp:getUnits() > 0 or gp:isExist() == true then + if #gp:getUnits() > 0 and gp:isExist() == true then return false end end