GetMaxTalentTier

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

Returns the number of available talent tiers.

tiers = GetMaxTalentTier()

Returns

tiers
number - number of talent tiers available to the player's character, based on the character's level.

Details

  • Information concerning levels at which talent tiers become available is stored in the CLASS_TALENT_LEVELS global variable, and can be queried like this:
local _, class = UnitClass("player")
local tierLevels = CLASS_TALENT_LEVELS[class] or CLASS_TALENT_LEVELS.DEFAULT
print("Your first talent point is available at level", tierLevels[1]);

Patch changes

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