From 99e21df7eac8109b638b66d6a3fe23a0fa52bb08 Mon Sep 17 00:00:00 2001 From: RealityWinner <31143064+RealityWinner@users.noreply.github.com> Date: Thu, 22 Feb 2024 10:48:46 -0500 Subject: [PATCH 1/2] Set newly added raids to default Fix for when new raids are added in SoD they are default not logged --- Init.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Init.lua b/Init.lua index 775e356..4b30fb6 100644 --- a/Init.lua +++ b/Init.lua @@ -70,6 +70,13 @@ local function LoadVariables() ALCOptions.instances[instanceID] = true end end + + -- Default new raids to true and dungeons to false. + for instanceID in pairs(ns.RAIDS) do + if ALCOptions.instances[instanceID] == nil then + ALCOptions.instances[instanceID] = true + end + end end -- Toggles logging if player is not logging and is in the right instance. From bf77802365ac25bb0986bddbdba6519056db9789 Mon Sep 17 00:00:00 2001 From: RealityWinner <31143064+RealityWinner@users.noreply.github.com> Date: Mon, 26 Feb 2024 13:31:56 -0500 Subject: [PATCH 2/2] Wrap setting missing raids to default in else --- Init.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Init.lua b/Init.lua index 4b30fb6..ea938ec 100644 --- a/Init.lua +++ b/Init.lua @@ -69,12 +69,12 @@ local function LoadVariables() for instanceID in pairs(ns.RAIDS) do ALCOptions.instances[instanceID] = true end - end - - -- Default new raids to true and dungeons to false. - for instanceID in pairs(ns.RAIDS) do - if ALCOptions.instances[instanceID] == nil then - ALCOptions.instances[instanceID] = true + else + -- Default new raids to true and dungeons to false. + for instanceID in pairs(ns.RAIDS) do + if ALCOptions.instances[instanceID] == nil then + ALCOptions.instances[instanceID] = true + end end end end