WoW:API UnitArmor: Difference between revisions
Jump to navigation
Jump to search
UnitArmor -Documentation by danboo-
No edit summary |
m (Recategorized) |
||
| Line 3: | Line 3: | ||
Returns the armor statistics relevant to the specified target. | Returns the armor statistics relevant to the specified target. | ||
UnitArmor(unit); | base, effectiveArmor, armor, posBuff, negBuff = UnitArmor(unit); | ||
---- | ---- | ||
;''Arguments'' | ;''Arguments'' | ||
:( | :("unit") | ||
:;unit : "player" | :;unit : String - The [[API TYPE UnitId|UnitId]] to get information from. (Only seems to work for <tt>"player"</tt> and <tt>"pet"</tt>) | ||
---- | ---- | ||
| Line 16: | Line 16: | ||
:base, effectiveArmor, armor, posBuff, negBuff | :base, effectiveArmor, armor, posBuff, negBuff | ||
:;base : | :;base : Number - The unit's base armor without buffs | ||
:;effectiveArmor : ? | :;effectiveArmor : Number - The unit's effective armor after buffs (and ??) | ||
:;armor : | :;armor : Number - Dont know what the difference between this and effectiveArmor is. | ||
:;posBuff : | :;posBuff : Number - Amount of armor increase due to positive buffs | ||
:;negBuff : | :;negBuff : Number - Amount of armor reduction due to negative buffs (a negative number) | ||
---- | ---- | ||
| Line 35: | Line 35: | ||
---- | ---- | ||
{{Template:WoW API}} | {{Template:WoW API}} | ||
[[Category:API Unit Functions|UnitArmor]] | |||
Revision as of 19:24, 28 December 2004
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.