API GetTalentInfo

talentID, name, texture, selected, available, spellID, unknown, row, column, known, grantedByAura = GetTalentInfo(tier, column, specGroupIndex [, isInspect, inspectUnit]) = GetTalentInfoByID(talentID, specGroupIndex [, isInspect, inspectUnit]) = GetTalentInfoBySpecialization(specIndex, tier, column)

GetTalentInfo

 * tier : number - Talent tier from 1 to
 * column : number - Talent column from 1 to
 * specGroupIndex : number - Index of active specialization group
 * isInspect : boolean ? - If non-nil, returns information based on inspectedUnit/classId.
 * inspectedUnit : string ? - Inspected unitId; if nil, the selected/available return values will always be false.

GetTalentInfoByID

 * talentID : number - Talent ID.
 * specGroupIndex : number
 * isInspect : boolean ?
 * inspectedUnit : string ?

GetTalentInfoBySpecialization

 * specIndex: number - Index of the specialization, ascending from 1 to.
 * tier : number
 * column : number

Returns

 * 1. talentID : number - Talent ID.
 * 2. name : <font color="#ecbc2a">string - Talent name.
 * 3. texture : <font color="#ecbc2a">number - FileID
 * 4. selected : <font color="#ecbc2a">boolean - true if the talent is chosen, false otherwise.
 * 5. available : <font color="#ecbc2a">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 : <font color="#ecbc2a">number - Spell ID that is added to the spellbook.
 * 7. unknown : Always appears to be nil.
 * 8. row : <font color="#ecbc2a">number - The row the talent is from. This will be the same as the tier argument given.
 * 9. column : <font color="#ecbc2a">number - The column the talent is from. This will be the same as the column argument given.
 * 10. known: <font color="#ecbc2a">boolean - true if the talent is active, false otherwise.
 * 11. grantedByAura : <font color="#ecbc2a">boolean - true if the talent is granted by an aura (i.e., an effect on an item), false otherwise. Legion's Class Soul rings used this rather than selected.