View Single Post
01-21-06, 08:31 AM   #24
JIM the Inventor
A Cyclonian
 
JIM the Inventor's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2005
Posts: 42
Verified

Originally Posted by Gello
I've researched this a bit more and I can't find an event that triggers when a spell comes off cooldown. Maybe someone else knows. This sounds like something you'll need a timer mod for. To have something run 10 seconds after you use a vanish macro.
Having just completed a mod that cares about this stuff, I can verify Gello's findings: There is no "event", as such, that occurs when cooldowns finish.

In Blizzard's own Cooldown.lua, there's this function that you can override:

CooldownFrame_OnAnimFinished

... however, this function is only called for ActionButtons that are in the visible action bar(s? May just be the primary one), and if you use it, you'll need to translate the button frame object into the action it represents, etc..

So perhaps not a great option, but it exists.
  Reply With Quote