This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
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:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED") combatLogEvent:SetScript("OnEvent", function(self, event) self:OnEvent(event, CombatLogGetCurrentEventInfo()) end) function combatLogEvent:OnEvent(event, ...) print(...) end
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
https://wow.gamepedia.com/COMBAT_LOG_EVENT
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 :)
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 :
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
https://wow.gamepedia.com/COMBAT_LOG_EVENT
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 :)