shadowsight timer fix timer tracking when friendly units take buff

This commit is contained in:
Sumsebrum
2022-01-12 16:18:11 +01:00
parent 114a7b14e4
commit 6954fb05d0
2 changed files with 6 additions and 4 deletions

View File

@ -33,7 +33,6 @@ end
function ShadowsightTimer:Initialize()
self.locale = Gladdy:GetArenaTimer()
self:RegisterMessage("JOINED_ARENA")
self:RegisterMessage("AURA_GAIN")
self:CreateAnchor()
end
@ -146,7 +145,7 @@ function ShadowsightTimer:JOINED_ARENA()
end
function ShadowsightTimer:AURA_GAIN(unit, auraType, spellID)
if (spellID == 34709) then
if (spellID == 34709 and Gladdy.db.shadowsightTimerEnabled) then
self:Start(Gladdy.db.shadowsightTimerResetTime, self:GetHiddenTimer())
end
end