#Calculating or getting cast time of an ability

23 messages · Page 1 of 1 (latest)

glad pulsar
#

I would like to get the cast time of a spell (in seconds/milliseconds, whatever), and use that. This cast time needs to account for haste, both from buffs (Bloodlust, Wrath of Air Totem, etc.) and gear.

Notice that this is about spells, and as such it should only consider things giving spell haste (i.e. not WF Totem)

tacit widget
#

it's a question for shaman class discord

glad pulsar
#

I can ask it there as well, but I don't entirely see how this would be a question for there, considering this can apply to all classes.

tacit widget
#

It's a theorycrafting question, answer can change for each class and extension

glad pulsar
#

Okay, I'll ask it over there then. Thank you anyways!

tacit widget
#

cast trigger give you cast time from API when you start casting, if i understand you want to know that cast time calculated from various factors before casting

#

that's why i call it a theorycrafting question, class discords have peoples dedicated to that kind of math

glad pulsar
#

Oh no cast trigger seems exactly what I was looking for! I'll look into that.

I am sorry if I worded it unclearly, but what I meant was:
When the player casts an ability, I want to know how long that will take, and do some math with that, within the WA. The math I have already (sorta) figured out, I just want to know where to get the numbers, so to say.

tacit widget
#

ha.. then cast trigger, %t in display to show total duration

glad pulsar
#

Is there also a LUA function for that?

tacit widget
glad pulsar
#

Thank you!

#

Should be able to get it from here 🙂

tacit widget
#

If you need a code review when you'r done feel free to post what you do in #1019675719334383696

#

i'm a little anxious at what you will do with custom code, when you didn't know about the cast trigger or how to find that function

glad pulsar
#

I have experience in Lua from other sources, and some very basic WAs (buff checks and stuff), wanted a bigger project

desert pumice
#

what are you trying to do?

glad pulsar
#

We'll see how far we get

#

A basic rotation WA for ele shamans, that tells what spell to cast next

tacit widget
#

!hekiliaddon

open valeBOT
tacit widget
#

consider contributing to a dedicated rotational addon

desert pumice
#

you may think its simple, but especially if you want to make it performant, it really isnt