API UnitArmor

Returns the armor stats for the unit.
base, effectiveArmor, armor, bonusArmor = UnitArmor(unit) -- retail
base, effectiveArmor, armor, posBuff, negBuff = UnitArmor(unit) -- classic
==Arguments==
:;unit: : UnitId - Only works for "player" and "pet". Works for "target" with Hunter's Beast Lore.
==Returns==
:;base: - The unit's base armor.
:;effectiveArmor: - The unit's effective armor.
:;armor:
====Retail====
:;bonusArmor:
====Classic====
:;posBuff: - Amount of armor increase due to positive buffs
:;negBuff: - Amount of armor reduction due to negative buffs (a negative number)
==Example==
local base, effectiveArmor = UnitArmor("player")
print(format("Your current armor is %d (%d base)", effectiveArmor, base))