1. #1

    how do I return spell damage amount on combat log event (weakauras)

    I'm trying to make an aura in weakauras that triggers when you get a crit (set to hit for testing) on pyroblast, and returns the amount of that crit. I am completely stuck and lost and I cannot for the life of me figure out how returning a combat log damage amount event works. For reference, I don't know lua at all but have gotten similarly (and more) complex functions to work, but I have no idea on this one.

    what I'm working with currently:


    function()
    local timestamp, type, hideCaster,
    sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags

    if (event == "COMBAT_LOG_EVENT_UNFILTERED") then
    if (type == "SPELL_DAMAGE") then

    if (spellName == "Pyroblast") then
    if (amount >= 0) then

    local pyro = amount

    WA_PYRO_RETURN = string.format("%.0f", pyro);


    return WA_PYRO_RETURN or 0;
    end
    end
    end
    end
    end



    dSKBnaGiLQCjfumkH4ucPvPuYROsLzrrDlqyxsvAyG0XufltQQNjrAAuORrLSnq03KunoPIZjr5DGQ08uLkDpqL9Pk v5GuKwivkpKIWePi6Ikv2OQKpQu0jvq1kPIzcQQBQuv2Ps6NsedvIQLkv6Pqnvq5QQszRkvv9vQu1ybvXzvk1CvLk2 RO)QQAWKdlLflvXJLKjRexwLnRQ8zfA0kWPfQvRGsETsvfZgIBtb7wr)MQgUewoLEUGPdCDiTDfKVRkv14vkCEjL1R GsnFLQkTF05tclXgs8sIxsyj(Zpb44H9LRLAmXlXHcKwny3gGepmvjUcna8gGDBas8h6Sce7NrIshkkkkeFvdHceB4 cGMHcZuGAfNzQbXlNjAbWznthkkkQGh1wDB(2WnPzQGh1wDRndNzQGh1wDVqAJbZubpQT662IxEH0gdMPwUayZ3gUj ntTCbWAZWzMA5cGxiTXGzQLla62IxEH0gd0HIIIIouuuuXFurUHUjGco4O2ZeLSp3mf2p8lzZ)D7)Uvy)VT(A4Wh2U U7m5ErPadUjDOOOOOOOOI)OIaQvCuWbh1E4Y3bF4)Bst3NPBUBVOuGb3Kouuuuuuuuuuuu0HIIIIIIIIIIIk(JksO4 qqwBgok4GJAVYRz99G0cG9Isbg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bzTz4sC51S(EqAbqIrd3p6mgKULGeBVXy)ewTIlXGBdqIF)4fWG8LX6DCbTEPL(yS06D6xVE(bHXojUW 6hTxiuU9QIdX(zUcnXF(jiX7qg6THt9YpbjEIAaMnEC8SHC9jXXljU8AwpLjSXGep4IhhaYxgDbTuiH6Yy9YECbjK1 ln)GWy9ehoKVY9XtqInXUvy76MyeFBjHLy0W9xH0cH0TeB9ixclXgqraXjSeKGeJgU)qXvLUL4qXvLWsCiEoIC5A)e K4kKwiKWsCiEoICjEFMU5UeKGexRKVVWbYxqazDxUGeADJDQB0vPD67k)GW1tcsCiXp9AS3696kXdLRpgHcnbzc

  2. #2
    Your function isn't taking any arguments. Variables aren't going to be populated out of nowhere.
    UI & AddOns expert | Interface & Macros moderator - My work

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •