Hello,I'm trying to make an addon which scan combat log event. I followed this documentation : https://wowwiki.fandom.com/wiki/API_COMBAT_LOG_EVENT
I have a problem with the spellId returned by CombatLogGetCurrentEventInfo().
It always return 0 for the spellId.
When I activate /combatlog, the combat log file is fine and the spellId is correct. Same with weak aura, it work fine with spellId...
My code :
local combatLogEvent = CreateFrame("Frame")
combatLogEvent:SetScript("OnEvent", function(self, event)
function combatLogEvent:OnEvent(event, ...)
Someone can help me ?
The spellId will always be 0 on Classic, because the current combat log was only added in patch 2.4.0
Unless you're using Retail, then you're doing something wrong but that little snippet looks fine
Thanks for your answer. Yes I forgot to mention that I'm on Classic.
I wonder how weak aura is handling this since it can make some trigger with a specifig spellId.
Maybe with GetSpellInfo(spellId) and match with the localized spellName
I will test this and see if it's work
Well it works :)