From 303365bda41d7ac66888f0c03963575e4779a2ec Mon Sep 17 00:00:00 2001 From: Xruptor Date: Fri, 14 Jan 2011 09:46:37 -0500 Subject: [PATCH] -Decided not to implement communication updates. --- xanWorldPVPTimers.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xanWorldPVPTimers.lua b/xanWorldPVPTimers.lua index af6e2ad..be196f9 100644 --- a/xanWorldPVPTimers.lua +++ b/xanWorldPVPTimers.lua @@ -1,5 +1,4 @@ --Provides timers for WORLD PVP objectives ---Uses SendAddonMessage to help determine whom is in control (GUILD ONLY) local f = CreateFrame("frame","xanWorldPVPTimers_EventFrame",UIParent) f:SetScript("OnEvent", function(self, event, ...) if self[event] then return self[event](self, event, ...) end end) @@ -133,7 +132,14 @@ end CORE --------------------------]] +local upt_throt = 0 + f:HookScript("OnUpdate", function(self, elapsed) + --do some throttling + upt_throt = upt_throt + elapsed + if upt_throt < 1 then return end + upt_throt = 0 + if GetNumWorldPVPAreas() < 1 then return end for i=1, GetNumWorldPVPAreas() do -- 1.7.9.5