mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-18 02:30:50 +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 = CreateFrame("Button",nil,UIParent)
|
||||||
pfUI.uf.targettargetScanner:SetScript("OnUpdate", function()
|
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
|
if UnitExists("targettarget") or (pfUI.unlock and pfUI.unlock:IsShown()) then
|
||||||
pfUI.uf.targettarget:Show()
|
pfUI.uf.targettarget:Show()
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user