BlzGetUnitAttackCooldown

Parameters
whichUnit unit
weaponIndex integer
comment

Get a unit’s Attack Cooldown, weapon index can be either 0 and 1 (a unit can have two different attacks). Returns base attack cooldown (from the unit editor) in seconds, without any items, agility or buff bonuses.

patch

1.29.2.9231

Source
common.j
return type
real
Source code
native BlzGetUnitAttackCooldown                    takes unit whichUnit, integer weaponIndex returns real