WoW:API UnitArmor: Difference between revisions
Jump to navigation
Jump to search
UnitArmor -Documentation by danboo-
m (Recategorized) |
No edit summary |
||
| Line 34: | Line 34: | ||
---- | ---- | ||
{{ | {{WoW API}} | ||
Revision as of 05:30, 4 January 2006
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")
- 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 (a negative number)
- Example
local base, effectiveArmor, armor, posBuff, negBuff = UnitArmor(unit);
- Result
- Description
- Returns the armor statistics relevant to the specified target.