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:

  1. The hero has an unspent skill point
  2. 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