unitframes: abort early on empty focus frame

This commit is contained in:
shagu
2020-05-09 01:14:11 +02:00
parent bf96d82b35
commit e4923a683e
+5
View File
@@ -782,6 +782,11 @@ function pfUI.uf.OnUpdate()
-- update combat feedback
if this.feedbackText then CombatFeedback_OnUpdate(arg1) end
-- early return on unset focus frames
if this.unitname and this.unitname == "focus" then
return
end
-- focus unit detection
if this.unitname and this.unitname ~= strlower(unitname) then
-- invalid focus frame