diff --git a/Vect.lua b/Vect.lua index b1937b8..3a5c82e 100644 --- a/Vect.lua +++ b/Vect.lua @@ -183,6 +183,7 @@ function Vect:Reset() Vect.drs = {} Vect.target = {unitGUID = -1, timers = {}} Vect.focus = {unitGUID = -1, timers = {}} + Vect:HideSelfDRFrames(); end function Vect:OnInitialize() @@ -301,6 +302,7 @@ function Vect:COMBAT_LOG_EVENT_UNFILTERED(_, timestamp, eventType, srcGUID, srcN if (not isPlayer and not libDRData:IsPVE(drCat)) then return end + Vect:DRDebuffFaded(spellID, dstGUID, isPlayer); end end diff --git a/data/drs.lua b/data/drs.lua index 7fb42fa..57eedbc 100644 --- a/data/drs.lua +++ b/data/drs.lua @@ -339,3 +339,12 @@ function Vect:UpdateDRs(unitGUID) end return found; end + +function Vect:HideSelfDRFrames() + if not Vect.frames["selfdr"][1] then return end; + + for i = 1, 18 do + local frame = Vect.frames["selfdr"][i]["frame"]; + frame:Hide(); + end +end \ No newline at end of file