DecUnitAbilityLevel

Parameters
whichUnit unit

The unit with the ability.

abilcode integer

The 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.

patch

1.17a

Source
common.j
return type
integer
Source code
native          DecUnitAbilityLevel takes unit whichUnit, integer abilcode returns integer