Originally Posted by Dalmasca1
So, I figured out how to make a textual display indicating how many whole Burning Embers I have, but is there any way to detect how many fractions of an Ember -or "emberbits" as they've been called on the forums- I have?
Right now, I'm not able to input decimal values like "1.2" when I have "Absolute Values" checked for the resource monitor.
|
Working on this now, Blizzard's API is being weird though. UnitPower doesn't return fractional results for Burning Embers, it's always 0, 1, 2 or 3. Need to see how they're doing it...
Edit: Figured it out. It's absolutely horrible - they added a third argument (a boolean) to UnitPower/UnitPowerMax for returning the ACTUAL number of embers, ranging from 0 to 30. Without it, it just gives 0 to 3.