PDA

View Full Version : which spell rank is cast?


muab
26-10-2006, 02:00 PM
aloa =)

the event SPELLCAST_START gives as arg1 which spell and as arg2 the casting time...

but how do i get the spell rank?

many thx
muab

Tunga
26-10-2006, 05:24 PM
Isn't it contained in the spell name in arg1 in the form of (Rank x) after the actual name?

muab
27-10-2006, 01:06 PM
i'd be happy if it was... but it isnt =(

found a lib (iscasting (http://www.curse-gaming.com/en/wow/addons-4606-1-iscasting.html)) which gets the rank if the spell is cast by normal action slots, but not if its cast by macro ( /cast blah )

Athame
27-10-2006, 07:11 PM
I don't know either, I needed it too for one of my addons, and had to resort to function hooking. Dirty sollution, but it works. Functions in question are: UseAction, CastSpell and CastSpellByName.