From 37a03258189eccd3ddd7cc1bada1a8e361d79ada Mon Sep 17 00:00:00 2001 From: jordon <29447509+jordonwow@users.noreply.github.com> Date: Tue, 3 Oct 2023 02:33:57 -0700 Subject: [PATCH] make sure profile is set fixes #671, fixes #672 --- BigDebuffs.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BigDebuffs.lua b/BigDebuffs.lua index 1a9daba..aabb29e 100755 --- a/BigDebuffs.lua +++ b/BigDebuffs.lua @@ -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)