Oh, maybe it's not the right spot for spellId, where can I get the info? because on the combatlog events page on wiki I can't find it or it shown as first.. idk why
Yes, It was a bad pasta, my bad:
Lua Code:
local function OnEvent(_, event, _, sourceGUID, _, _, _, _, _, destGUID, _, _, spellId)
if event == "COMBAT_LOG_EVENT_UNFILTERED" then
if event == "SPELL_AURA_APPLIED" and spellId == 421972 then
UpdateRaidDebuffList()
elseif event == "SPELL_AURA_REMOVED" and spellId == 421972 then
local destName = GetUnitName(destGUID, true)
if destName then
local icon = GetRaidTargetIndex(destName)
if icon then
table.insert(raidTargetIcons, icon)
ClearRaidTargetIcon(destName)
print(destName .. "'s Controlled Burn debuff has been removed.")
end
end
end
end
end