CurseForge and Overwolf are joining forces!
Awesome More Information
  • 0.950867052023121

    posted a message on COMBAT_LOG_EVENT - SpellId 0

     Well it works :)

    Posted in: AddOn HELP!
  • 0

    posted a message on COMBAT_LOG_EVENT - SpellId 0

    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

    Posted in: AddOn HELP!
  • 0

    posted a message on COMBAT_LOG_EVENT - SpellId 0

    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 ?

    Posted in: AddOn HELP!
  • To post a comment, please or register a new account.