-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.
This commit is contained in:
Relintai 2016-05-31 13:47:14 +02:00
parent 5258c5a061
commit 225a0bd3de
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

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