IncUnitAbilityLevel

Parameters
whichUnit unit

The unit with the ability.

abilcode integer

The four digit rawcode representation of the ability.

comment

Increases the level of a unit's existing ability by 1.

If the ability is not yet learned, does nothing.

Returns the new ability level.

bug

IncUnitAbilityLevel can increase an abilities level to maxlevel+1. On maxlevel+1 all ability fields are 0. See http://www.wc3c.net/showthread.php?p=1029039#post1029039 and http://www.hiveworkshop.com/forums/lab-715/silenceex-everything-you-dont-know-about-silence-274351/.

(v2.0.2) The tooltip at "maxlevel+1" shows all stats as if the ability were at "maxlevel". GetUnitAbilityLevel "correctly" returns "maxlevel+1" and first call to DecUnitAbilityLevel will decrease from "maxlevel+1" to "maxlevel".

patch

1.17a

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