Danboo12465@legacy41533507 (talk | contribs) No edit summary |
Flickering19966@legacy41540688 (talk | contribs) (Filled in some of the blanks) |
||
Line 10: | Line 10: | ||
:(String unit) |
:(String unit) |
||
+ | :;unit : The [[API TYPE UnitId|UnitId]] to get information from. (Only seems to work for <tt>"player"</tt> and <tt>"pet"</tt>) |
||
− | :;unit : "player" or "pet" |
||
---- |
---- |
||
Line 16: | Line 16: | ||
:base, effectiveArmor, armor, posBuff, negBuff |
:base, effectiveArmor, armor, posBuff, negBuff |
||
+ | :;base : Number - The unit's base armor without buffs |
||
− | :;base : ? |
||
− | :;effectiveArmor : ? |
+ | :;effectiveArmor : Number - The unit's effective armor after buffs (and ??) |
+ | :;armor : Number - Dont know what the difference between this and effectiveArmor is. |
||
− | :;armor : ? |
||
− | :;posBuff : |
+ | :;posBuff : Number - Amount of armor increase due to positive buffs |
− | :;negBuff : |
+ | :;negBuff : Number - Amount of armor reduction due to negative buffs (Is this positive or negative??) |
---- |
---- |
Revision as of 04:13, 23 December 2004
Returns the armor statistics relevant to the specified target.
UnitArmor(unit);
- Arguments
- (String unit)
- unit
- The UnitId to get information from. (Only seems to work for "player" and "pet")
- Returns
- base, effectiveArmor, armor, posBuff, negBuff
- base
- Number - The unit's base armor without buffs
- effectiveArmor
- Number - The unit's effective armor after buffs (and ??)
- armor
- Number - Dont know what the difference between this and effectiveArmor is.
- posBuff
- Number - Amount of armor increase due to positive buffs
- negBuff
- Number - Amount of armor reduction due to negative buffs (Is this positive or negative??)
- Example
local base, effectiveArmor, armor, posBuff, negBuff = UnitArmor(unit);
- Result
- Description
- Returns the armor statistics relevant to the specified target.
Template:WoW API