From afd5647807b071633a3c0f933155c638d39d5a67 Mon Sep 17 00:00:00 2001 From: Sumsebrum Date: Wed, 17 Aug 2022 14:23:28 +0200 Subject: [PATCH] add force hide aura when timer runs out even in stealth --- Modules/Auras.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/Auras.lua b/Modules/Auras.lua index fea6135..166a7d4 100644 --- a/Modules/Auras.lua +++ b/Modules/Auras.lua @@ -130,7 +130,7 @@ function Auras:CreateFrame(unit) self.frame:SetAlpha(1) end if (self.timeLeft <= 0) then - Auras:AURA_FADE(self.unit, self.track) + Auras:AURA_FADE(self.unit, self.track, true) else if self.spellID == 8178 then self.text:SetText("") @@ -633,9 +633,9 @@ function Auras:AURA_GAIN(unit, auraType, spellID, spellName, icon, duration, exp end end -function Auras:AURA_FADE(unit, auraType) +function Auras:AURA_FADE(unit, auraType, force) local auraFrame = self.frames[unit] - if (not auraFrame or auraFrame.track ~= auraType) then + if (not auraFrame or auraFrame.track ~= auraType or not Gladdy.buttons[unit] or (not force and Gladdy.buttons[unit].stealthed)) then return end if auraFrame.active then