so im having real problems checking my burning embers, based on soapboxes old code there is something in the -event loader- which says
Code:
function events:UNIT_POWER(...)
local unitID, strResource = ...
PQ_Shards = strResource
if unitID == PQ_player and strResource == 'BURNING_EMBERS' then
PQ_SoulShard = UnitPower(PQ_player, 14)
end
end
But every time i stick in a
Code:
if PQ_Soulshard >= 1 then
blahblahblah
end
my profile chucks up an error and it crashes
is there any other way to check my embers ?
edit - i think if UnitPower("player",14) works but does anyone know if embers is counted in integers using this function or I can use decimals ?