Learns a talent, spending one talent point
See also Talent functions.
Signature:
LearnTalent(tabIndex,
talentIndex,
isPet,
talentGroup)
Arguments:
tabIndex
- Index of a talent tab (between 1 andGetNumTalentTabs()
) (number
)talentIndex
- Index of a talent option (between 1 andGetNumTalents()
) (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 Talents2
- Secondary Talentsnil
- Currently active talents