View Single Post
04-08-20, 10:26 AM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,892
There is no such thing as calculating time to hit the target after casting, as far as I am aware. Look up wowpedia and see what commands and return values are available on functions relating to combat or spell casting. I suspect it iss down to learning the spell and having a timer showing how much debuff is left.

Addons like OmniCC will add a timer to the action button to signify how much time is left on the current targets debuff that you cast. Simply learn at what number you need to start your cast with to hit it when the debuff comes off.

Addons like TellMeWhen have a selection of buttons that flash up suggesting what spells/abilities to cast next based on your class and spec.

Have a look and see how they do it and if their addons don't work or doesn't do exactly what you do use what you have learned from their addons to write your own that does what you want. Obviously within the ability of the current wow api systems.
__________________
  Reply With Quote