View Single Post
02-15-15, 03:03 AM   #3
dihavs
A Murloc Raider
Join Date: Feb 2015
Posts: 5
Tried that one, but it does not seem to work.

This one however does return the timer when I case Lifebloom on myself:

Code:
function()
    local _, _, _, _, _, duration, expirationTime = UnitBuff("player", "Lifebloom")
    return duration or 0, expirationTime or 0
end
So I modified your script to this to have it show the timer when I cast Lifebloom on raid/partymembers, but it doesnt show me the timer, any idea what's going wrong? Thanks for your efforts so far!

Code:
function()
    local name, _, _, _, _, _, duration, expirationTime = UnitBuff("player", "Lifebloom", nil, "PLAYER")
    if name then
        return duration or 0, expirationTime or 0
    end
    if not IsInGroup() then
        return
    end
    
    local unit, n = "raid", GetNumGroupMembers()
    if not IsInRaid() then
        unit, n = "party", n - 1
    end
    for i = 1, n do
        local name, _, _, _, _, _, duration, expirationTime = UnitBuff(unit..i, "Lifebloom", nil, "PLAYER")
        if name then
            return duration or 0, expirationTime or 0
        end
    end
end
  Reply With Quote