GetPrimaryTalentTree
Jump to navigation
Jump to search
Flavors |
---|
Links |
Info |
Added in 4.0.1 |
This is no longer a part of the World of Warcraft API.
|
Returns the index of your primary talent tree.
primaryTabId = GetPrimaryTalentTree([isInspect[, isPet[, talentGroup]]])
Arguments
- isInspect
- Boolean (Optional) - If true returns the information for the inspected unit instead of the player.
- isPet
- Boolean (Optional) - If true returns the information for the inspected pet.
- talentGroup
- Number (Optional) - The number of the talentgroup you want to look at. i.e. 1 for Primary, 2 for Secondary.
Returns
- primaryTabId
- Number - Returns the index of the tab with the most number of talents in it, i.e. the primary talent tree (1, 2, or 3), or nil if no primary tree has been selected.
Details
- Talent information is not available until PLAYER_ALIVE has fired.
Patch changes
- Patch 5.0.4 (2012-08-28): Replaced by GetSpecialization.
- Patch 4.0.1 (2010-10-12): Added.