Wowpedia

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

READ MORE

Wowpedia
Register
Advertisement
UnitArmor -Documentation by danboo-

Returns the armor statistics relevant to the specified target.

base, effectiveArmor, armor, posBuff, negBuff = UnitArmor(unit);

Arguments
("unit")
unit
String - The UnitId to get information from. (Only seems to work for "player" and "pet") (Also works for "target" if that is a beast on which the player has cast Beast Lore.)

Returns
base, effectiveArmor, armor, posBuff, negBuff
base
Number - The unit's base armor without buffs, armor kits or enchantments.
effectiveArmor
Number - The unit's effective armor after buffs (and ??)
armor
Number - The unit's armor after adding armor kits and enchantments but without buffs.
posBuff
Number - Amount of armor increase due to positive buffs
negBuff
Number - Amount of armor reduction due to negative buffs (a negative number)

Example
local base, effectiveArmor, armor, posBuff, negBuff = UnitArmor(unit);
Result

Description
Returns the armor statistics relevant to the specified target.

Template:WoW API

Advertisement