SelectHeroSkill
- Parameters
-
whichHero unit
Target hero.
abilcode integer
Abilities' raw code identifier.
- comment
Spends a skill point of the hero to learn a skill. If the requirements are not met, does nothing. This is equivalent to clicking the red plus button in game and choosing a skill.
Requirements:
- The hero has an unspent skill point
- The skill is available for learning (not level-locked etc.)
- patch
1.00
- Source
- common.j
- return type
nothing
- Source code
native SelectHeroSkill takes unit whichHero, integer abilcode returns nothing