API GetTalentInfo

From Wowpedia
Jump to: navigation, search

Returns information about a talent.

talentID, name, texture, selected, available, spellID, unknown, row, column, unknown, known = GetTalentInfo(tier, column, talentGroup[, isInspect, inspectedUnit])


Number - Talent tier, ascending from 1.
Number - Talent column, ascending from 1.
Number - FrameXML uses GetActiveSpecGroup() which currently (7.3.5) returns 1 and TalentFrame.talentGroup which currently (7.3.5) returns the talent group for the selected panel.
Optional Flag - If non-nil, returns information based on inspectedUnit/classId.
Optional String (unitId) - Inspected unit ID; if nil, the selected/available return values will always be false.


1. talentID 
String - Talent ID.
2. name 
String - Talent name.
3. texture 
String - Texture path to the talent's icon.
4. selected 
Boolean - true if the talent is chosen, false otherwise.
5. available 
Boolean - true if the talent tier is chosen, or if it is level-appropriate for the player and the player has no talents selected in that tier, false otherwise.
6. spellID 
String - Spell ID that is added to the spellbook.
7. unknown 
Always appears to be nil.
8. row 
String - The row the talent is from. This will be the same as the tier argument given.
9. column 
String - The column the talent is from. This will be the same as the column argument given.

10. unknown

Boolean - Not sure what this relates to
11. known 
Boolean - true if the talent is known, false otherwise, Legion's Class Soul rings use this rather than selected.

Patch changes

  • Warlords of Draenor Patch 6.0.2 (2014-10-14): Arguments and return values changed.
  • Mists of Pandaria Patch 5.0.4 (2012-08-28): Arguments and return values changed.

See also