1. #1

    WeakAuras2 Lua function for tracking debuff on target of different debuff

    Hey all,

    Need some help creating a function. Pretty much I have a weak aura that triggers when I have rupture up. I want to also display on the rupture how much time I have left until a specific poison runs off. What I can't figure out is how to get the poison time of the target of the rupture, I can only get it of the target of my character (this shown below). Any ideas on how I could do this?

    Code:
    function(arg1, arg2, arg3, arg4, arg5, arg6, arg7) 
        local debuffTime = select(7, UnitDebuff("target", "Agonizing Poison")) or GetTime()
        local poisonTime = debuffTime - GetTime()
        if poisonTime < 0 then poisonTime = 0 end
        return string.format("%.1f", poisonTime)
    end
    Last edited by bclark8923; 2017-02-16 at 06:04 AM.

Posting Permissions

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