I looked into the UnitDebuff() function and for now I'm trying to get the right value, but whenever I replace the
Code:
return name or 0, true;
with
Code:
return value1 or 0, true;
I get an LUA-Error and there's no value displayed.
Whole function:
Code:
function()
local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId, canApplyAura, isBossDebuff, value1, value2, value3
= UnitDebuff("player", "Leichte Staffelung")
return value1 or 0, true;
end