Returns information about a talent option


See also Talent functions.

Signature:

name, iconTexture, tier, column, rank, maxRank, isExceptional, meetsPrereq, previewRank, meetsPreviewPrereq = GetTalentInfo(tabIndex, talentIndex, inspect, pet, talentGroup)

Arguments:

  • tabIndex - Index of a talent tab (between 1 and GetNumTalentTabs()) (number)
  • talentIndex - Index of a talent option (between 1 and GetNumTalents()) (number)
  • inspect - true to return information for the currently inspected unit; false to return information for the player (boolean)
  • pet - true to return information for the player's pet; false to return information 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

Returns:

  • name - Name of the talent (string)
  • iconTexture - The icon texture of the talent. (string)
  • tier - Row in which the talent should be displayed (1 = top) (number)
  • column - Column in which the talent should be displayed (1 = left) (number)
  • rank - Number of points spent in the talent (number)
  • maxRank - Maximum number of points that can be spent in the talent (number)
  • isExceptional - 1 if the talent confers a new ability (spell); otherwise nil (1nil)
  • meetsPrereq - 1 if the prerequisites to learning the talent have been met; otherwise nil (1nil)
  • previewRank - Number of points spent in the talent in preview mode (number)
  • meetsPreviewPrereq - 1 if the prerequisites to learning the talent have been met in preview mode; otherwise nil (1nil)