View Single Post
08-04-14, 10:25 AM   #9
Lybrial
A Flamescale Wyrmkin
AddOn Compiler - Click to view compilations
Join Date: Jan 2010
Posts: 120
Originally Posted by Phanx View Post
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.
  Reply With Quote