Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns the unit's melee attack speed for each hand.
mainSpeed, offSpeed = UnitAttackSpeed(unit)
Arguments[]
- unit
- string : UnitId - The unit to get information from. (Verified for
"player"
and"target"
)
Returns[]
- mainSpeed
- number - The unit's base main hand attack speed (seconds)
- offSpeed
- number - The unit's offhand attack speed (seconds) -
nil
if the unit has no offhand weapon.