Skip to content

Commit

Permalink
Merge pull request #544 from clicketz/patch/cuf-min-nil-fix
Browse files Browse the repository at this point in the history
Fix CompactUnitFrame compare nil error
  • Loading branch information
jordonwow authored Jan 3, 2023
2 parents 10e77c1 + c3ac9f0 commit 5017596
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion BigDebuffs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2041,9 +2041,13 @@ 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
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 5017596

Please sign in to comment.