shadowsight register AURA_GAIN

This commit is contained in:
Sumsebrum 2021-09-01 08:16:37 +02:00
parent 1c93e4ce4d
commit dd8a35857d

View File

@ -21,6 +21,7 @@ end
function ShadowsightTimer:Initialize() function ShadowsightTimer:Initialize()
self.locale = Gladdy:GetArenaTimer() self.locale = Gladdy:GetArenaTimer()
self:RegisterMessage("JOINED_ARENA") self:RegisterMessage("JOINED_ARENA")
self:RegisterMessage("AURA_GAIN")
self:CreateTimerFrame() self:CreateTimerFrame()
end end
@ -32,6 +33,12 @@ function ShadowsightTimer:JOINED_ARENA()
self.timerFrame:Show() self.timerFrame:Show()
end end
function ShadowsightTimer:AURA_GAIN(unit, auraType, spellID)
if (spellID == 34709) then
--TODO reset timer after 15s
end
end
function ShadowsightTimer:CHAT_MSG_BG_SYSTEM_NEUTRAL(msg) function ShadowsightTimer:CHAT_MSG_BG_SYSTEM_NEUTRAL(msg)
for k,v in pairs(self.locale) do for k,v in pairs(self.locale) do
if str_find(msg, v) then if str_find(msg, v) then