A library that can retrieve talent info for any specialization.
Examples
Get talent info for the current class
local LibTalentInfo = LibStub("LibTalentInfoClassic-1.0") local class = select(2, UnitClass("player")) local _, name = LibTalentInfo:GetTalentInfo(class, 1, 1) print(name)
Get talent info for a different class
local LibTalentInfo = LibStub("LibTalentInfoClassic-1.0") local class = "WARRIOR" -- non-localized class identifier for tab = 1, MAX_TALENT_TABS do for talentIndex = 1, LibTalentInfo:GetNumTalentsForTab(class, tab) do local _, name = LibTalentInfo:GetTalentInfo(class, tab, talentIndex) print(name) end end