WoW:API UnitAttackBothHands: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
({{wowapi}}, format)
Line 1: Line 1:
<center>'''UnitAttackBothHands''' ''-Documentation by [[user:Flickering|Flickering]]-''</center>
{{wowapi}} __NOTOC__
 
mainBase, mainMod, offBase, offMod = UnitAttackBothHands("unit");
 
Returns information about the unit's melee attacks.
Returns information about the unit's melee attacks.
mainBase, mainMod, offBase, offMod = UnitAttackBothHands(unit);


----
==Parameters==
;''Arguments''
===Arguments===
 
:("unit")
:;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===
----
:;mainBase : Number - The unit's base main hand attack power.
;''Returns''
:;mainMod : Number - Any modifier to the unit's main hand attack power.
 
:;offBase : Number - The unit's base offhand attack power (equal to unarmed weapon skill if unit doesn't dual wield).
:mainBase, mainMod, offBase, offMod
:;offMod : Number - Any modifier to the unit's offhand attack power.
:;mainBase : Number - The unit's base main hand attack power
:;mainMod : Number - Any modifier to the unit's main hand attack power
:;offBase : Number - The unit's base offhand attack power (equal to unarmed weapon skill if unit doesn't dual wield)
:;offMod : Number - Any modifier to the unit's offhand attack power
 
----
{{WoW API}}

Revision as of 20:04, 23 December 2006

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 attack power.
mainMod
Number - Any modifier to the unit's main hand attack power.
offBase
Number - The unit's base offhand attack power (equal to unarmed weapon skill if unit doesn't dual wield).
offMod
Number - Any modifier to the unit's offhand attack power.