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 = {}