From 582c8e44f7951de9c7e08f35482f146d7cb3178f Mon Sep 17 00:00:00 2001 From: Simpy Date: Sun, 10 Nov 2024 17:28:20 -0500 Subject: [PATCH] protect from this error (if blizz addon is off --- ElvUI/Core/Modules/Misc/RaidUtility.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ElvUI/Core/Modules/Misc/RaidUtility.lua b/ElvUI/Core/Modules/Misc/RaidUtility.lua index 10ea68465a..4dc80e184a 100644 --- a/ElvUI/Core/Modules/Misc/RaidUtility.lua +++ b/ElvUI/Core/Modules/Misc/RaidUtility.lua @@ -41,7 +41,8 @@ local RestrictPingsTo = Enum.RestrictPingsTo local IG_MAINMENU_OPTION_CHECKBOX_ON = SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON local PRIEST_COLOR = RAID_CLASS_COLORS.PRIEST -local NUM_RAID_GROUPS = NUM_RAID_GROUPS +local NUM_RAID_GROUPS = NUM_RAID_GROUPS or 8 +local NUM_RAID_ICONS = NUM_RAID_ICONS or 8 local PANEL_HEIGHT = E.Retail and 180 or 124 local PANEL_WIDTH = 250 local BUTTON_HEIGHT = 20 @@ -360,7 +361,7 @@ function RU:CreateTargetIcons() TargetIcons:SetTemplate('Transparent') TargetIcons.icons = {} - local num, previous = _G.NUM_RAID_ICONS + 1 -- include clear + local num, previous = NUM_RAID_ICONS + 1 -- include clear for i = 1, num do local id = num - i local button = CreateFrame('Button', '$parent_TargetIcon'..i, TargetIcons, 'SecureActionButtonTemplate')