Skip to content

Commit

Permalink
make sure profile is set
Browse files Browse the repository at this point in the history
fixes #671, fixes #672
  • Loading branch information
jordonwow committed Oct 3, 2023
1 parent c98541b commit 37a0325
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion BigDebuffs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1519,7 +1519,9 @@ local CompactUnitFrame_UtilSetDebuff = CompactUnitFrame_UtilSetDebuff

if WOW_PROJECT_ID == WOW_PROJECT_MAINLINE then
hooksecurefunc("CompactUnitFrame_UpdateAuras", function(frame, unitAuraUpdateInfo)
if (not BigDebuffs.db.profile.raidFrames.enabled) then return end
if not BigDebuffs.db.profile then return end
if not BigDebuffs.db.profile.raidFrames then return end
if not BigDebuffs.db.profile.raidFrames.enabled then return end
if (not frame) or frame:IsForbidden() then return end
if (not UnitIsPlayer(frame.displayedUnit)) then return end
BigDebuffs:ShowBigDebuffs(frame)
Expand Down

0 comments on commit 37a0325

Please sign in to comment.