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.)
return type
nothing
Source code
native SelectHeroSkill takes unit whichHero, integer abilcode returns nothing
Source
unit.j
wc3modding.com
SelectHeroSkill