GetUnitAbilityLevel

Parameters
whichUnitunit

Target unit.

abilcodeinteger

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

note

'ABnP' can be used to detect building in construction and 'AUnP' for upgrading building

patch

1.13

Source
common.j (raise an issue to discuss on Github or submit a PR)
return type
integer
Source code
native          GetUnitAbilityLevel takes unit whichUnit, integer abilcode returns integer