View Single Post
08-29-12, 07:34 AM   #257
Meorawr
A Chromatic Dragonspawn
AddOn Author - Click to view addons
Join Date: Nov 2010
Posts: 193
Originally Posted by Dalmasca1 View Post
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.

Last edited by Meorawr : 08-29-12 at 07:56 AM.