Hi,
I'm writing an addon, and I need to be able to count genuine spells cast by the player.
Currently, i'm hooking into :
CHAT_MSG_SPELL_SELF_DAMAGE
CHAT_MSG_SPELL_SELF_BUFF
And this works fine - to a point.
These events also fire if certain items proc, or spell effects work etc., and I would like to discount these.
For example :
I have Windfury up, and it goes off, this triggers the CHAT_MSG_SPELL_SELF_BUFF event.
The drain life effect on my shield goes off, this triggers both CHAT_MSG_SPELL_SELF_BUFF and CHAT_MSG_SPELL_SELF_DAMAGE
Is there a way to determine which are genuine spells cast by a player vs which are procs ?
EDIT : I did think of maybe trying to see if the global cooldown timer was active, but some spells genuinely cast by a player (long heals f/ex) have a casttime loinger than the cooldown, so by the time the spell goes off and fires the event, the cooldown timer has already reset.
I'd prefer not to have to have a list of proc effects and skip those !
Thanks for any help =)
EDIT2: Seems a different set of search criteria would have helped. Reading this post :
http://www.wowinterface.com/forums/s...ead.php?t=4009 suggests that the SPELLCAST_STOP event may work - I'll give that a go !