GetUnitAbilityLevel

Parameters
whichUnit unit

Target unit.

abilcode integer

Abilities' raw code identifier.

comment

Returns the level of the ability for the unit.

note

Building abilities {'ANbu','AHbu','AEbu','AObu','AUbu','AGbu'} are considered equivalent by the game (identical ability instance). If the unit has one of them, it has all of them (and vice-versa). Therefore a wisp with 'ANbu'==1 also has 'AHbu'==1. See: https://github.com/lep/jassdoc/issues/152

patch

1.13

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