DecUnitAbilityLevel

Parameters
whichUnitunit

The unit with the ability.

abilcodeinteger

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 (raise an issue to discuss on Github or submit a PR)
return type
integer
Source code
native          DecUnitAbilityLevel takes unit whichUnit, integer abilcode returns integer