Post by Ketho
If I understand this right, instead of e.g. for warriors
"10/31/0" you want to see
"Fury"?local function GetTalentText(group)
local maxPoints, finalIcon, text = 0, DEFAULT_ICON, ""
for tab = 1, 3 do
local _, name, _, icon, points = GetTalentTabInfo(tab,nil,nil,group)
if points > maxPoints then
maxPoints = points
finalIcon = icon
text = name
end
end
return text, finalIcon
end
For reference:
p.s.
Lua is a name, not an acronym
Edit: Fixed text not having a default value if there are zero points for every tree