Wikia

WoWWiki

Changes: API UnitAttackBothHands

Edit

Back to page

({{wowapi}}, format)
(Returns)
 
Line 7: Line 7:
 
:;unit : String - The [[API TYPE UnitId|UnitId]] to get information from. (Verified for <tt>"player"</tt> and <tt>"target"</tt>)
 
:;unit : String - The [[API TYPE UnitId|UnitId]] to get information from. (Verified for <tt>"player"</tt> and <tt>"target"</tt>)
 
===Returns===
 
===Returns===
:;mainBase : Number - The unit's base main hand attack power.
+
:;mainBase : Number - The unit's base main hand weapon skill (not rating).
:;mainMod : Number - Any modifier to the unit's main hand attack power.
+
:;mainMod : Number - Any modifier to the unit's main hand weapon skill (not rating).
:;offBase : Number - The unit's base offhand attack power (equal to unarmed weapon skill if unit doesn't dual wield).
+
:;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 attack power.
+
:;offMod : Number - Any modifier to the unit's offhand weapon skill (not rating).

Latest revision as of 09:54, September 4, 2007

WoW API < UnitAttackBothHands

Returns information about the unit's melee attacks.

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

ParametersEdit

ArgumentsEdit

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

ReturnsEdit

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

Around Wikia's network

Random Wiki