WoW API: UnitAttackBothHands

From AddOn Studio
Revision as of 04:47, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API UnitAttackBothHands to API UnitAttackBothHands without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < UnitAttackBothHands

Returns information about the unit's melee attacks.

mainBase, mainMod, offBase, offMod = UnitAttackBothHands(unit);

Parameters

Arguments

unit
String - The UnitId to get information from. (Verified for "player" and "target")

Returns

mainBase
Number - The unit's base main hand weapon skill (not rating).
mainMod
Number - Any modifier to the unit's main hand weapon skill (not rating).
offBase
Number - The unit's base offhand weapon skill (not rating)(equal to unarmed weapon skill if unit doesn't dual wield).
offMod
Number - Any modifier to the unit's offhand weapon skill (not rating).