From 354b183c364cc4cf4fec0f141278b96f0721fcc2 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 6 May 2016 16:12:06 +0200 Subject: [PATCH] Fixed a bug, selfdr frames weren't disappearing after PLAYER_ENTERING_WORLD. --- Vect.lua | 2 ++ data/drs.lua | 9 +++++++++ 2 files changed, 11 insertions(+) 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