1. #1

    WeakAuras 2 custom untrigger help

    So I currently have a weakauras icon made to show when my Enhancement 4P procs and resets the lava lash CD. I currently have it set to hide after 1.5 seconds. But I want a custom untrigger to hide the icon when lava lash is on CD. Can anyone help me with this?

    Basically just a custom untrigger for when lava lash is on CD.

    Thank you.

    Below is the code for the 4P proc, but it shouldn't really matter.

    function()
    WA_LLProc = WA_LLProc or {0, 0};
    local start, duration = GetSpellCooldown("Lava Lash");
    if WA_LLProc[2] > 1.5 and start + duration + 0.1 < WA_LLProc[1] + WA_LLProc[2] and (duration > 0 or GetTime() + 0.1 < WA_LLProc[1] + WA_LLProc[2]) then
    WA_LLProc = {start, duration};
    return true;
    end
    WA_LLProc = {start, duration};
    end
    EDIT: FIGURED IT OUT

    For those that want to know

    function ()
    local t = GetTime();
    local s,d = GetSpellCooldown("Lava Lash"); -- [[CHANGE THIS SPELL ID]]
    if s and s > 0 and ((s + d - t) >= 1.5) then
    return true;
    end
    return false;
    end
    Last edited by GwiGwi; 2014-01-15 at 11:35 PM.

Posting Permissions

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