DecUnitAbilityLevel
- Parameters
whichUnit unitThe unit with the ability.
abilcode integerThe four digit rawcode representation of the ability.
- comment
Decreases the level of a unit's ability by 1. The level will not go below 1.
Returns the new ability level.
- note
It's not possible to reduce the level of a building ability like 'AHbu'. See
GetUnitAbilityLevel.- note
See:
UnitRemoveAbilityto remove an ability from unit- patch
1.17a
- Source
- common.j (suggest an edit or discuss on Github)
- return type
integer- Source code
native DecUnitAbilityLevel takes unit whichUnit, integer abilcode returns integer