Warcraft III resources & community, 2003–2006 · archived

Anyone know the formula for attack speed?

5 posts
#1

Anyone know the formula for attack speed?

Alright, so, we have your base attack delay as such:

unit cooldown + unit backswing animation

Now, we have agility, which normally gives a 2% attack speed increase (hereto refered as 'asi') per point of agility, and spells that can give +% asi.

Now, how does the asi come into play in the overall formula?

I am assuming the formula would look something like this:
(Cooldown + Backswing) - (Cooldown + Backswing) X Sum of ASI = ## seconds


For example:
Say a unit has 3 sec cooldown and 1 sec backswing animation.


At lvl 1 with 0 agility, we would have...
(3+1) - (3+1) x 0% = 4 seconds.

Now, with 10 agil, thats a 20% asi, so..

(3+1) - (3+1) x 20% = 4 - .8 = 3.2 seconds...

But, that can't be the formula, because then we would be swinging instantly at 50 agility.

So, the formula might be compounding for each 1% asi.

Anyone have any thoughts? or has this been worked out already?

Thanks for any help.
#2
Backswing has no effect, from what I've tried using mortar teams.
Agility would simply multiply the time by 0.98.
Therefore the formula is:

agility
(cooldown) X (0.98)


Yeah, that's 0.98 to the power agility.
#3
I'm pretty sure backswing is part of the delay...

Oh well, i'll test that out.

So.. a revised formula would be...

(Cooldown + Backswing) x [(1.00 - agil asi)^agility] x [1.00 - magical ais 1] x [1.00 - magical ais 2] x [1.00 - magical ais 3] x etc.

anyone else have anything to add?

Again, thanks for any and all help.
#4
Yeah, backswing has no effect on the attack speed. Just try make agility does not increase attack speed in gameplay constants and count the cooldown of the unit's attack.
#5
So the formula is:

Cooldown X (0.98)^agility