Quantcast

Fix talents module, thanks to Greltok

Scott Sibley [08-26-10 - 04:30]
Fix talents module, thanks to Greltok
Filename
Modules/Talents.lua
diff --git a/Modules/Talents.lua b/Modules/Talents.lua
index 1e77f32..b399d1f 100644
--- a/Modules/Talents.lua
+++ b/Modules/Talents.lua
@@ -87,7 +87,7 @@ function mod:TalentQuery_Ready(e, name, realm)
 		spec[nameRealm] = {[4]=NONE}
 		local highPoints = {}
 		local specNames = {}
-		local group = GetActiveTalentGroup(true)
+		local group = GetActiveTalentGroup(isnotplayer)
 		for tab = 1, GetNumTalentTabs(isnotplayer) do
 			local treename, _, pointsspent = GetTalentTabInfo(tab, isnotplayer, nil, group)
 			highPoints[tab] = pointsspent
@@ -124,8 +124,8 @@ local updateTalents = function()
 		return
 	end
 	if expired then
-		TalentQuery:NotifyInspect("player")
-		TalentQuery.frame:Hide()
+		--TalentQuery:NotifyInspect("player")
+		--TalentQuery.frame:Hide()
 		TalentQuery:Query("mouseover")
 		expireTimer = self:ScheduleTimer(expireQuery, EXPIRE_TIME)
 		expired = nil
@@ -241,7 +241,7 @@ function mod:SetUnit()
 	if UnitIsUnit("mouseover", "player") then
 		self:TalentQuery_Ready(_, UnitName("player"))
 	else
-		TalentQuery:NotifyInspect("mouseover")
+		--TalentQuery:NotifyInspect("mouseover")
 		TalentQuery:Query("mouseover")
 		talentTimer = talentTimer or self:ScheduleRepeatingTimer(updateTalents, 0)
 		if expireTimer then