BlzSetUnitArmor
- Parameters
-
whichUnit unit
armorAmount real
- comment
Changes(set) the unit armor of a specific unit, you pass it a real value, can be negative.
Changes TOTAL amount of armor a unit has. If unit has a bonus (green) armor from an aura or item, base armor will be reduced to achieve total amount of armor you specified. E.g. a unit has 1+3 armor, if you set armor to 1.00, unit’s armor will be changed to -2+3
- patch
1.29.2.9231
- Source
- common.j
- return type
nothing
- Source code
native BlzSetUnitArmor takes unit whichUnit, real armorAmount returns nothing