View Single Post
08-04-14, 04:22 AM   #3
Lybrial
A Flamescale Wyrmkin
AddOn Compiler - Click to view compilations
Join Date: Jan 2010
Posts: 120
Ok but i still get lua errors and a strange behaviour of my bar:

Code:
function()
    local value = select(8, UnitBuff("player", "Blutschild")) or 0
    return value;
end
So with this i get the expirationTime and i return it. My goal is
to have a bar which shows when the buff will expire.
With the above code i just get lua errors.

11x Interface\AddOns\WeakAuras\WeakAuras-2.0.7.lua:1864: attempt to compare number with string
44x Interface\AddOns\WeakAuras\RegionTypes\aurabar.lua:649: attempt to perform arithmetic on field 'expirationTime' (a nil value)
Interface\AddOns\WeakAuras\RegionTypes\aurabar.lua:649: in function <Interface\AddOns\WeakAuras\RegionTypes\aurabar.lua:647>
Interface\AddOns\WeakAuras\RegionTypes\aurabar.lua:1053: in functio

Last edited by Lybrial : 08-04-14 at 04:24 AM.
  Reply With Quote