View Single Post
11-21-23, 09:49 AM   #4
fatrog
A Fallenroot Satyr
Join Date: Nov 2022
Posts: 21
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:
  1. local function OnEvent(_, event, _, sourceGUID, _, _, _, _, _, destGUID, _, _, spellId)
  2.     if event == "COMBAT_LOG_EVENT_UNFILTERED" then
  3.         if event == "SPELL_AURA_APPLIED" and spellId == 421972 then
  4.             UpdateRaidDebuffList()
  5.         elseif event == "SPELL_AURA_REMOVED" and spellId == 421972 then
  6.             local destName = GetUnitName(destGUID, true)
  7.             if destName then
  8.                 local icon = GetRaidTargetIndex(destName)
  9.                 if icon then
  10.                     table.insert(raidTargetIcons, icon)
  11.                     ClearRaidTargetIcon(destName)
  12.                     print(destName .. "'s Controlled Burn debuff has been removed.")
  13.                 end
  14.             end
  15.         end
  16.     end
  17. end
  Reply With Quote