From 9f6cc8db87806e18f145b5a84f0e256b59595026 Mon Sep 17 00:00:00 2001 From: clicketz <40314230+clicketz@users.noreply.github.com> Date: Thu, 29 Dec 2022 21:22:43 +0000 Subject: [PATCH 1/2] Fix CompactUnitFrame compare nil error --- BigDebuffs.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/BigDebuffs.lua b/BigDebuffs.lua index eaefc36..c46fff5 100755 --- a/BigDebuffs.lua +++ b/BigDebuffs.lua @@ -2041,9 +2041,14 @@ if WOW_PROJECT_ID == WOW_PROJECT_MAINLINE then for i = 1, #debuffs do -- math.min maybe? if index <= self.db.profile.raidFrames.maxDebuffs then if not frame.BigDebuffs[index] then break end - frame.BigDebuffs[index].baseSize = frame:GetHeight() * debuffs[i][2] * 0.01 + local frameHeight = frame:GetHeight() + frame.BigDebuffs[index].baseSize = frameHeight * debuffs[i][2] * 0.01 local debuffFrame = frame.BigDebuffs[index]; debuffFrame.spellId = debuffs[i][1].spellId; + if not debuffFrame.maxHeight then + debuffFrame.maxHeight = frameHeight; + end + debuffFrame.spellId = debuffs[i][1].spellId; CompactUnitFrame_UtilSetDebuff(debuffFrame, debuffs[i][1]) frame.BigDebuffs[index].cooldown:SetSwipeColor(0, 0, 0, 0.7) index = index + 1 From c3ac9f0e627c0ff70d59e243325880269ff4139d Mon Sep 17 00:00:00 2001 From: clicketz <40314230+clicketz@users.noreply.github.com> Date: Thu, 29 Dec 2022 21:28:33 +0000 Subject: [PATCH 2/2] Remove unintended duplicate --- BigDebuffs.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/BigDebuffs.lua b/BigDebuffs.lua index c46fff5..30177c2 100755 --- a/BigDebuffs.lua +++ b/BigDebuffs.lua @@ -2048,7 +2048,6 @@ if WOW_PROJECT_ID == WOW_PROJECT_MAINLINE then if not debuffFrame.maxHeight then debuffFrame.maxHeight = frameHeight; end - debuffFrame.spellId = debuffs[i][1].spellId; CompactUnitFrame_UtilSetDebuff(debuffFrame, debuffs[i][1]) frame.BigDebuffs[index].cooldown:SetSwipeColor(0, 0, 0, 0.7) index = index + 1