mirror of
https://github.com/Relintai/Relintais-Enemy-Kooldown-Tracker-WotLK.git
synced 2024-11-08 10:12:11 +01:00
-Hopefully fixed an error.
This commit is contained in:
parent
51c96da543
commit
be3936dcbe
@ -18,6 +18,8 @@ function Vect:DRDebuffGained(spellID, dstGUID, isPlayer)
|
||||
local drCat = libDRData:GetSpellCategory(spellID);
|
||||
local spellName, spellRank, spellIcon = GetSpellInfo(spellID);
|
||||
|
||||
Vect:UpdateDRs(dstGUID);
|
||||
|
||||
if not Vect.drs[dstGUID][drCat] then
|
||||
local cd = 18;
|
||||
local currentTime = GetTime();
|
||||
@ -35,7 +37,6 @@ function Vect:DRDebuffGained(spellID, dstGUID, isPlayer)
|
||||
drCat
|
||||
}
|
||||
else
|
||||
Vect:UpdateDRs(dstGUID);
|
||||
local cd = 18;
|
||||
local currentTime = GetTime();
|
||||
local endTime = currentTime + cd;
|
||||
@ -78,6 +79,8 @@ function Vect:DRDebuffFaded(spellID, dstGUID, isPlayer)
|
||||
local drCat = libDRData:GetSpellCategory(spellID);
|
||||
local spellName, spellRank, spellIcon = GetSpellInfo(spellID);
|
||||
|
||||
Vect:UpdateDRs(dstGUID);
|
||||
|
||||
if not Vect.drs[dstGUID][drCat] then
|
||||
--means we didn't see it applied
|
||||
local cd = 18;
|
||||
@ -96,7 +99,6 @@ function Vect:DRDebuffFaded(spellID, dstGUID, isPlayer)
|
||||
drCat
|
||||
}
|
||||
else
|
||||
Vect:UpdateDRs(dstGUID);
|
||||
local cd = 18;
|
||||
local currentTime = GetTime();
|
||||
local endTime = currentTime + cd;
|
||||
|
Loading…
Reference in New Issue
Block a user