View Single Post
08-29-12, 04:15 PM   #288
Dalmasca1
A Deviate Faerie Dragon
Join Date: Aug 2012
Posts: 19
Originally Posted by Meorawr View Post
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.
Ya, it's not pretty. So in RC2, I see that the browser now accepts decimal inputs for absolute values, but it still won't detect the fractional ember value from the API.

I'm basically just looking to make a text that will update with the numerical printout of of how many embers I currently have, out to the tenths digit. Maybe there's a better way for me to do this? Maybe I should write that as a stand-alone addon...