Skip to content

Commit

Permalink
Fix CompactUnitFrame compare nil error
Browse files Browse the repository at this point in the history
  • Loading branch information
clicketz authored Dec 29, 2022
1 parent b12b7ed commit 9f6cc8d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion BigDebuffs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f6cc8d

Please sign in to comment.