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