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

@ -98,8 +98,11 @@ end
function EventListener:COMBAT_LOG_EVENT_UNFILTERED() function EventListener:COMBAT_LOG_EVENT_UNFILTERED()
-- timestamp,eventType,hideCaster,sourceGUID,sourceName,sourceFlags,sourceRaidFlags,destGUID,destName,destFlags,destRaidFlags,spellId,spellName,spellSchool -- timestamp,eventType,hideCaster,sourceGUID,sourceName,sourceFlags,sourceRaidFlags,destGUID,destName,destFlags,destRaidFlags,spellId,spellName,spellSchool
local _,eventType,_,sourceGUID,_,_,_,destGUID,_,_,_,spellID,spellName,spellSchool,extraSpellId,extraSpellName,extraSpellSchool = CombatLogGetCurrentEventInfo() local _,eventType,_,sourceGUID,_,_,_,destGUID,_,_,_,spellID,spellName,spellSchool,extraSpellId,extraSpellName,extraSpellSchool = CombatLogGetCurrentEventInfo()
local srcUnit = Gladdy.guids[sourceGUID] local srcUnit = Gladdy.guids[sourceGUID] -- can be a PET
local destUnit = Gladdy.guids[destGUID] local destUnit = Gladdy.guids[destGUID] -- can be a PET
if (Gladdy.db.shadowsightTimerEnabled and eventType == "SPELL_AURA_APPLIED" and spellID == 34709) then
Gladdy.modules["Shadowsight Timer"]:AURA_GAIN(nil, nil, 34709)
end
if destUnit then if destUnit then
-- diminish tracker -- diminish tracker

View File

@ -33,7 +33,6 @@ 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:CreateAnchor() self:CreateAnchor()
end end
@ -146,7 +145,7 @@ function ShadowsightTimer:JOINED_ARENA()
end end
function ShadowsightTimer:AURA_GAIN(unit, auraType, spellID) 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()) self:Start(Gladdy.db.shadowsightTimerResetTime, self:GetHiddenTimer())
end end
end end