UnitArmor
functionimplementedavailable in: camelot
Returns the armor stats for the unit. base, effectiveArmor, armor, bonusArmor = UnitArmor(unit) -- retail base, effectiveArmor, armor, posBuff, negBuff = UnitArmor(unit) -- classic
function UnitArmor( unit: string): (number, number, number, number)Parameters
| name | type | description |
|---|---|---|
unit | string | Only works for "player" and "pet". Works for "target" with Hunter's Beast Lore. |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | base | number | The unit's base armor. |
| 2 | effective | number | |
| 3 | real | number | |
| 4 | bonus | number |
In wowlua's emulated client
implementedwowlua models the system behind it. what the statuses mean
Restrictions
sources
Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Unit system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.