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.

note

See: UnitRemoveAbility to 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