View Single Post
10-20-14, 03:28 AM   #20
ywfn
A Kobold Labourer
Join Date: Mar 2008
Posts: 1
Originally Posted by Phanx View Post
I don't think you need to scan the tooltip for that... you can just use the GetSpellCharges API function.
Tested in T16 LFR and it seems to work fine, I can pull current number of charges and time until next charge by looking at GetSpellCharges for Rebirth, Eternal Guardian, Raise Ally, or Soulstone. Outside of combat, charges just show up as nil, but when in combat, it's a number and the cooldown info is also correct. (Same as what you'd see on the button if you had a battle res spell yourself)

Had tested it earlier in T14 LFR and reported that it didn't work. But I just went back in and now it does work. Wonder if I screwed up my test macro earlier (rewrote it since then), or if there are actually some conditions under which it'll break...

(Note: I am playing a mage)

Last edited by ywfn : 10-20-14 at 04:10 AM.