BlzGetUnitAttackCooldown

Parameters
whichUnitunit
weaponIndexinteger
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 (raise an issue to discuss on Github or submit a PR)
return type
real
Source code
native BlzGetUnitAttackCooldown                    takes unit whichUnit, integer weaponIndex returns real