From 8c2c234a1e8e22957394cfd3be654df7fa8a6f92 Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 19 Jan 2021 08:57:48 +0100 Subject: [PATCH] unitframes: only scan focus on virtual unitstrings --- api/unitframes.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/unitframes.lua b/api/unitframes.lua index ce3efba8..5e42ff2d 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -840,7 +840,8 @@ function pfUI.uf.OnUpdate() this.fullupdate = nil end - if this == pfFocus then -- handle pseudo focus frames + -- handle pseudo focus frames + if this.unitname and this == pfFocus then local unitname = ( this.label and UnitName(this.label) ) or "" if pfFocusTarget then -- update focus target