-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spell interrupting #393
Comments
there is already ain jps a fct jps.shouldKickLag(unit) that interrupts at the end of enemy cast function jps.shouldKickLag(unit) |
hmm but what if the player is currently casting/channeling and miss the interrupt time window ? |
perhaps something like this, now depends some casting spell needs to do not ne interrupted function jps.shouldKickPlayerIsCasting(unit) |
hmmm sorry but the shouldKickLag function is more pvp use I think, in PVE you have some bosses which even cast/channel until interrupted or the cast duration is > 5-7 sec... and would this work for melees? |
Perhaps a fct below seems better function jps.shouldKickCast(unit) |
If you need a random number generator, mersenne twister is an option - here's a lua implementation: Haven't tested it but it should work fine...don't know how fast it is though...maybe use the cache funciton to cache this value... |
Yeah, we got already some kind of issue. How we could implement a random interrupt delay? (I was asked yesterday if I use a kick addon since I interrupt often very fast as melee)
Thought about something like:
Usage:
The text was updated successfully, but these errors were encountered: