Originally Posted by doofus
I have been using
local arcaneCharges = UnitPower("player", 16);
to determine the number of Arcane Charges (0 .. 4) and I have observed that in plenty of cases I get one less charges than are actually available. It seems there is a delay between the Arcane Blast "landing" and the API registering the charge. The GUI however works properly and properly shows the charges.
|
The GUI just listens for UNIT_POWER_FREQUEST and calls UnitPower() from the handler (Interface/Addons/Blizzard_Nameplates), so it doesn't seem to be doing anything differently from what you are trying to do.