Abilities' raw code identifier.
Adds the ability to target unit. Can be used to add an ability to any hero. The added ability is level 1 and without a cooldown.
- true if the addition was successful (hero did not have this ability before)
- false otherwise (hero already has this ability)
- return type
- Source code
native UnitAddAbility takes unit whichUnit, integer abilityId returns boolean