From 225a0bd3de5bffb4ffe37ce823c1f60a9c719da1 Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 31 May 2016 13:47:14 +0200 Subject: [PATCH] -Now, if an aura is removed, but the addon doesn't get the proper event, the DR icon will wait for 10 sec + the DR reset duration. (it won't actually start counting, because that will be more misleading.) -Incremented version. --- data/drs.lua | 5 ++++- data/global.lua | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/data/drs.lua b/data/drs.lua index 6a78dce..25571a5 100644 --- a/data/drs.lua +++ b/data/drs.lua @@ -327,6 +327,7 @@ function Rekt:CreateDRFrames(which) t:SetPoint("CENTER", frame, "CENTER", 0, 0); t:SetFont("Fonts\\FRIZQT__.TTF", 11, "OUTLINE, MONOCHROME") --frame:Hide(); + Rekt.frames[which][i] = {} Rekt.frames[which][i]["frame"] = frame; Rekt.frames[which][i]["texture"] = text; @@ -410,13 +411,15 @@ function Rekt:UpdateDRs(unitGUID) if not self.drs[unitGUID] then return end local t = GetTime(); local found = false; + --let's check if one of the cooldowns finished for k, v in pairs(self.drs[unitGUID]) do - if (v[7] == true and v[2] <= t) or (v[2] + 25 <= t) then + if (v[7] == true and v[2] <= t) or (v[2] + 10 + Rekt:getDRTime() <= t) then self.drs[unitGUID][v[8]] = nil; found = true; end end + return found; end diff --git a/data/global.lua b/data/global.lua index 93cf87d..1e0c37b 100644 --- a/data/global.lua +++ b/data/global.lua @@ -2,7 +2,7 @@ Rekt = LibStub("AceAddon-3.0"):NewAddon("Rekt", "AceConsole-3.0", "AceEvent-3.0") Rekt.appName = "Rekt" Rekt.dbName = "RektDB" -Rekt.version = "1.05" +Rekt.version = "1.06" Rekt.modules = {}