mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-22 15:46:56 +00:00
unitframes: abort early on empty focus frame
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user