WoW API: UnitAttackSpeed

Revision as of 04:47, 15 August 2023 by Move page script (talk) (Move page script moved page API UnitAttackSpeed to API UnitAttackSpeed without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

WoW API < UnitAttackSpeed

Returns the unit's melee attack speed for each hand.

mainSpeed, offSpeed = UnitAttackSpeed("unit");

Parameters

Arguments

unit
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.