• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Attack Speed Question

Status
Not open for further replies.
Level 3
Joined
May 15, 2008
Messages
35
I would like to ask a question on attack speed.
For example, if a unit has a base attack speed of 3.00 and I gave him a glove of haste that gives 30% attack speed, ignoring his agility, how is his new attack speed calculated?

I would thank those who help in advance. ( I would like to rep those who help but I need at least 10 rep rite? )
 
Last edited:
Level 8
Joined
Apr 30, 2009
Messages
338
As a reference, 100% attack speed means his attack speed is cut in half.

Don't think of it in terms of attack cooldown though, think of it in terms of attacks per second and it's much easier to figure out.

A unit with 3.00 attack speed has 0.33 attacks per second; with a 30% bonus he has 0.33 x 1.3, or 0.43 attacks per second.

0.43 attacks per second translates into an attack speed of approximately 2.3.

So the formula for new attack speed is:

[ 1 / (attack speed) ] x [ 100% + bonus% ] = new attack speed
[ 1 / 3.00 ] x [ 130% ] = 2.3

I believe multiple bonuses stack additively, meaning that two +30% items would just make it 160%
 
Level 2
Joined
Apr 26, 2009
Messages
11
What you actually mean?

If agility is like 20, and u have 30 % extra = 20x1.30 = 26
If You ignore Agility and Speed is 3 = 3.00x1.30

I don't really know what you mean, but the above text is what im thinking u mean.
 
Level 5
Joined
Jun 7, 2008
Messages
141
Attack speed is like this. (I think)

I have a Unit with 3.00 Attack Speed with 35 Agility
The 3.00 means that (I think) every 3.00-0.1*[Agility] seconds, the unit's attack "cooldown" ends. So the unit will probably attack every 2.65 Seconds.

So if I get Gloves of Haste with +30% attack speed, I think it means that the it's current attack speed from 2.65-.30=2.35?

Though, I'm not really sure about this.
 
Level 3
Joined
May 15, 2008
Messages
35
Thx for the effort, when iI said ignore his agility, I actually meant to say that presuming agility does not add any attack speed, what will the hero's attck speed be.
 
Level 5
Joined
Jun 7, 2008
Messages
141
Thats not whats he's asking >.<
He is asking how Attack Speed is Calculated in World Editor when you give a unit Items with Bonus Attack Speed.
So if a Unit had a default attack speed of 3.00 CD, What will happen to it when you get it a Gloves of Haste with +30 Attack Speed.
I'm not really sure about this. But it's either gotta be 2.10 or 2.70
 
Level 8
Joined
Apr 30, 2009
Messages
338
Thats not whats he's asking >.<
He is asking how Attack Speed is Calculated in World Editor when you give a unit Items with Bonus Attack Speed.
So if a Unit had a default attack speed of 3.00 CD, What will happen to it when you get it a Gloves of Haste with +30 Attack Speed.
I'm not really sure about this. But it's either gotta be 2.10 or 2.70

No, it's neither.

It's 2.43.

0.33 attacks per second times 130% = 0.43 attacks per second

1 / 0.43 = 2.33 attack speed


+30% attack speed DOES NOT REDUCE THE TIME BETWEEN ATTACKS BY 30%

IT INCREASES THE NUMBER OF ATTACKS PER SECOND BY 30%
 
Level 9
Joined
Oct 17, 2007
Messages
547
Well in that case.. i dont think its that simple since its really hard to tell how they stack up... like an item with 15% increase and 5% decrease on one unit; how would that work?
 
Level 5
Joined
Sep 13, 2008
Messages
165
Well that depends on the order of which WE calculates, if it uses BOMDAS, the the 5% will be taken from the resulting value of the 15% increase (which is, 10% i do believe).
Still the attack animation prevents an exact value. so a 3.00 cooldown will be longer than 3 second, unless that is also used when calculating the 3.00 cooldown
 
Status
Not open for further replies.
Top