From be3936dcbeba649b1dd61cfc8c1b7b33d7276e51 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 6 May 2016 16:08:47 +0200 Subject: [PATCH] -Hopefully fixed an error. --- data/drs.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/data/drs.lua b/data/drs.lua index fff04e2..7fb42fa 100644 --- a/data/drs.lua +++ b/data/drs.lua @@ -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;