Originally Posted by Lily.Petal
Well it's not giving me an error, it's just not showing up at all. I don't really understand it.
|
Debug time! Hmm, I wonder if print works in Lua Text
Is fast update ticked?
Code:
local _, pToken = UnitPowerType(unit)
local pCur, pMax = Power(unit), MaxPower(unit)
print(unit)
print(pCur)
print(pMax)
if pMax > 0 then
if pToken == "RAGE" or pToken == "RUNIC_POWER" then
-- Warrior / Teddy Bear Druid / DK
if pCur > 0 then
return "%d", pCur
end
else
-- Everything else
local pPer = ceil(pCur / pMax)
if pPer < 100 then
return "%d", pPer
end
end
else
return ""
end