View Single Post
11-16-05, 01:54 PM   #15
Silversage
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 132
Cladhaire,

Yes, since seeing that post in the WoW forums, I've tried hooking UseAction. This basically works, but involves using a tooltip to determine whether the action stored in a button is a macro or a spellcast, and to find the spell of the name. I'm still experimenting to determine whether I can get the spell level. (Hopefully, since this appears in the tooltip for a spell that's been copied to an action bar, it will be available somewhere.)

Interestingly, if you cast a spell directly from the spellbook, it *does* call CastSpell. Weird.

--Q
  Reply With Quote