From 685f2d3c590fda646a95325a63bf1b18689b39f8 Mon Sep 17 00:00:00 2001 From: Jrc13245 Date: Sun, 1 Mar 2026 11:27:39 -0500 Subject: [PATCH] fix focus nil error --- Core.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core.lua b/Core.lua index be8c48b..0d263c3 100644 --- a/Core.lua +++ b/Core.lua @@ -2363,7 +2363,7 @@ function CleveRoids.DoWithConditionals(msg, hook, fixEmptyTargetFunc, targetBefo needRetarget = false else -- return false if pfUI is installed and no focus is set instead of "invalid target" - if pfUI and (pfUI.uf.focus.label == nil or pfUI.uf.focus.label == "") then return false end + if pfUI and pfUI.uf and (not pfUI.uf.focus or pfUI.uf.focus.label == nil or pfUI.uf.focus.label == "") then return false end -- If the direct UnitID isn't found, fall back to the original (but likely failing) method of targeting by name. if not CleveRoids.TryTargetFocus() then UIErrorsFrame:AddMessage(SPELL_FAILED_BAD_TARGETS, 1.0, 0.0, 0.0, 1.0)