• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Attack speed vs attack cooldown vs damage point

Level 11
Joined
Jul 28, 2024
Messages
340
How does attack speed affect attack cooldown and damage point?
As far as inderstand +15% does not mean attack cd will be reduced 15%
This is the formula as far as i understand.
JASS:
effectiveAttackCooldown = BlzGetUnitWeaponRealField(unit, UNIT_WEAPON_RF_ATTACK_COOLDOWN, 0) / (1-attackSpeedBonusCoeffecient)

My goal is to get real attack cooldown value...
BlzGetUnitWeaponRealField(unit, UNIT_WEAPON_RF_ATTACK_COOLDOWN, 0) returns the value without any modifiers applied

But how to get the attack speed bonus so I can do the calculation myself...
 
Last edited:
Same answer
Blizzard hasn't provided any functionality to work with green stats, so you can use Memory Hack/Ujapi or some crutches like Custom Stat System, which is the best option but requires discipline because you have to do everything custom.
Calculating attack speed from default auras/buffs is impossible without the necessary native functions.
 
Back
Top