Originally Posted by Phanx
Yes, which is why in the post directly before yours I posted revised versions that will return 0 instead of nil when the buff isn't up...
|
No my friend, the last error i posted appeared with this code:
Code:
function()
local _, _, _, _, _, duration, expirationTime = UnitBuff("player", "Blutschild")
return expirationTime or 0
end
or
Code:
function()
local _, _, _, _, _, duration, expirationTime = UnitBuff("player", "Blutschild")
return expirationTime and (expirationTime - GetTime()) or 0
end
I just made a wrong quote im sorry for that. I corrected the quote.