Fix Combat log event listeners

This commit is contained in:
andrew6180
2024-05-21 03:01:24 -07:00
parent 4ac4a33f89
commit df58c7f9a1
2 changed files with 3 additions and 8 deletions
@@ -802,8 +802,8 @@ local events_to_track = {
}
local enemy_spell_pool
local CLEvents = function(self, event)
local time, token, hidding, who_serial, who_name, who_flags, who_flags2, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, school, aura_type = CombatLogGetCurrentEventInfo()
local CLEvents = function(self, event, ...)
local time, token, hidding, who_serial, who_name, who_flags, who_flags2, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, school, aura_type = CombatLogGetCurrentEventInfo(...)
if (events_to_track [token] and bitBand(who_flags or 0x0, 0x00000060) ~= 0) then
local t = enemy_spell_pool [spellid]
@@ -1088,12 +1088,7 @@ Vanguard.OpenOptionsPanel = function()
VanguardOptionsWindow:Show()
end
local CombatLogGetCurrentEventInfo = CombatLogGetCurrentEventInfo
function Vanguard:OnEvent (_, event, arg1, token, time, who_serial, who_name, who_flags, _, alvo_serial, alvo_name, alvo_flags, _, spellid, spellname, spellschool, tipo)
function Vanguard:OnEvent (_, event, arg1)
if (event == "ADDON_LOADED") then
local AddonName = arg1
if (AddonName == "Details_Vanguard") then