Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
No edit summary
 
(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 : increased armor due to positive buffs
+
:;posBuff : Number - Amount of armor increase due to positive buffs
:;negBuff : reduced armor due to negative buffs
+
:;negBuff : Number - Amount of armor reduction due to negative buffs (Is this positive or negative??)
   
 
----
 
----

Revision as of 04:13, 23 December 2004

UnitArmor -Documentation by danboo-

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