targettarget: limit scan interval

This commit is contained in:
shagu
2017-09-18 23:45:12 +02:00
parent d8ea1aa302
commit e9960044fc
+1
View File
@@ -4,6 +4,7 @@ pfUI:RegisterModule("targettarget", function ()
pfUI.uf.targettargetScanner = CreateFrame("Button",nil,UIParent)
pfUI.uf.targettargetScanner:SetScript("OnUpdate", function()
if ( this.limit or 1) > GetTime() then return else this.limit = GetTime() + .2 end
if UnitExists("targettarget") or (pfUI.unlock and pfUI.unlock:IsShown()) then
pfUI.uf.targettarget:Show()
else