Learns a talent, spending one talent point

See also Talent functions.


LearnTalent(tabIndex, talentIndex, isPet, talentGroup)


  • tabIndex - Index of a talent tab (between 1 and GetNumTalentTabs()) (number)
  • talentIndex - Index of a talent option (between 1 and GetNumTalents()) (number)
  • isPet - True to edit talents for the player's pet, false to edit talents for the player (boolean)
  • talentGroup - Which set of talents to edit, if the player has Dual Talent Specialization enabled (number)
    • 1 - Primary Talents
    • 2 - Secondary Talents
    • nil - Currently active talents