mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-16 09:50:50 +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
|
-- update combat feedback
|
||||||
if this.feedbackText then CombatFeedback_OnUpdate(arg1) end
|
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
|
-- focus unit detection
|
||||||
if this.unitname and this.unitname ~= strlower(unitname) then
|
if this.unitname and this.unitname ~= strlower(unitname) then
|
||||||
-- invalid focus frame
|
-- invalid focus frame
|
||||||
|
|||||||
Reference in New Issue
Block a user