From 19eba81faa2814b72fef20db0dd8e58dc4922621 Mon Sep 17 00:00:00 2001 From: Sumsebrum Date: Tue, 25 Jan 2022 19:58:51 +0100 Subject: [PATCH] shadowsight fix enabled/disabled --- Modules/ShadowsightTimer.lua | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Modules/ShadowsightTimer.lua b/Modules/ShadowsightTimer.lua index 09d9631..8843cc2 100644 --- a/Modules/ShadowsightTimer.lua +++ b/Modules/ShadowsightTimer.lua @@ -148,13 +148,15 @@ end --------------------------- function ShadowsightTimer:JOINED_ARENA() - self:RegisterEvent("CHAT_MSG_BG_SYSTEM_NEUTRAL") - self:SetScript("OnEvent", ShadowsightTimer.OnEvent) - for i=1,2 do - self["timerFrame" .. i].font:SetText("1:30") - self["timerFrame" .. i].font:SetTextColor(1, 0.8, 0) + if Gladdy.db.shadowsightTimerEnabled then + self:RegisterEvent("CHAT_MSG_BG_SYSTEM_NEUTRAL") + self:SetScript("OnEvent", ShadowsightTimer.OnEvent) + for i=1,2 do + self["timerFrame" .. i].font:SetText("1:30") + self["timerFrame" .. i].font:SetTextColor(1, 0.8, 0) + end + self.anchor:Show() end - self.anchor:Show() end function ShadowsightTimer:AURA_GAIN(unit, auraType, spellID)