View Single Post
12-10-11, 10:29 PM   #3
Wimpface
A Molten Giant
 
Wimpface's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 648
Originally Posted by Taryble View Post
From the looks of it, your script always returns the highest talent tab's info (1 if you haven't bought dual-spec, 2 if you have).

You may want to use GetActiveTalentGroup() to find out WHICH talents are active, and then query GetTalentTabInfo() with the result from it.
Like this?
Code:
if GetActiveTalentGroup() == 1 then
	for i = 1, GetNumTalentTabs() do
		local _, name = GetTalentTabInfo(i)
	end
	GetTalentTabInfo(1, name)
elseif GetActiveTalentGroup() == 2 then
	for i = 1, GetNumTalentTabs() do
		local _, name = GetTalentTabInfo(i)
	end
	GetTalentTabInfo(2,  name)
end
__________________
All I see is strobe lights blinding me in my hindsight.
  Reply With Quote