WoWInterface - View Single Post - Arcane Charges
Thread: Arcane Charges
View Single Post
01-10-19, 09:18 AM   #2
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 29
Originally Posted by doofus View Post
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.
  Reply With Quote