diff --git a/api/unitframes.lua b/api/unitframes.lua index 65082b5c..c6d0a11a 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -218,6 +218,8 @@ function pfUI.uf:CreateUnitFrame(unit, id, config, tick) end) f:SetScript("OnUpdate", function() + if ( this.fpscontrol or 1) > GetTime() then return else this.fpscontrol = GetTime() + .02 end + local unitname = ( this.label and UnitName(this.label) ) or "" -- focus unit detection