mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-22 15:46:56 +00:00
targettarget: limit scan interval
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user