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