fix focus nil error

This commit is contained in:
Jrc13245
2026-03-01 11:27:39 -05:00
parent 58c7ab8457
commit 685f2d3c59
+1 -1
View File
@@ -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)