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