GetTalentTierInfo

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 7.0.3

Returns the column of the selected talent for a given tier.

tierAvailable, selectedTalent, tierUnlockLevel = GetTalentTierInfo(tier, specGroupIndex [, isInspect, inspectedUnit])

Arguments

tier
number - Talent tier from 1 to MAX_TALENT_TIERS
specGroupIndex
number - Index of active specialization group (GetActiveSpecGroup)
isInspect
boolean? - If non-nil, returns information based on inspectedUnit.
inspectedUnit
string? - Inspected unitId.

Returns

tierAvailable
boolean - true if the player can select a talent for the tier.
selectedTalent
number - The column number of the selected talent. This is always 0 for inspected units.
tierUnlockLevel
number - The level the tier becomes available to the player.

Patch changes

Shadowlands Patch 9.0.1 (2020-10-13): Added tierUnlockLevel return, which replaced CLASS_TALENT_LEVELS usage.