Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Wowpedia
Advertisement

Returns the tier and column of a talent's prerequisite, and if the talent is learnable.

tier, column, isLearnable = GetTalentPrereqs(tabIndex, talentIndex [, isInspect, isPet, talentGroup)

Arguments[]

tabIndex
number - Ranging from 1 to GetNumTalentTabs()
talentIndex
number - Ranging from 1 to GetNumTalents(tabIndex)
isInspect
boolean? - Whether the talent is for the currently inspected player.
isPet
boolean?
talentGroup
number? - Probably the dual spec group index.

Returns[]

tier
number - The row/tier that the prerequisite talent sits on.
column
number - The column that the prerequisite talent sits on.
isLearnable
number - Returns 1 if you have learned the prerequisite talents, nil otherwise.

Details[]

  • The talentIndex is counted as if it where a tree, meaning that the left most talent in the top most row is number 1 followed by the one immediate to the right is number 2, if there are no more talents to the right then it continues from the left most talent on the next row.
  • If you check a talent with no prerequisites, the function returns nil.

Patch changes[]

Mists of Pandaria Patch 5.0.4 (2012-08-28): Removed.

Advertisement