BlzGetUnitArmor
- Parameters
-
whichUnit unit
- comment
Get the current unit armor of a specific unit.
Returns TOTAL amount of armor a unit has, including bonus (green) armor from auras, buffs, agility and items. If you need just base or bonus armor, you need to calculate base armor yourself (for heroes: -2 + agility (excluding bonuses) * 0.3). Agility bonus also counts as bonus armor, e.g. +1 agility will be displayed as + 0.3 armor with default gameplay constants.
- patch
1.29.2.9231
- Source
- common.j
- return type
real
- Source code
native BlzGetUnitArmor takes unit whichUnit returns real