Quantcast

Update for talent group changes

James Whitehead II [06-30-12 - 13:36]
Update for talent group changes
Filename
Clique.lua
attribute_tests.lua
diff --git a/Clique.lua b/Clique.lua
index 9254429..52d17c7 100755
--- a/Clique.lua
+++ b/Clique.lua
@@ -403,7 +403,7 @@ function addon:GetClickAttributes(global)
         -- non-global bindings are only applied on non-global frames. handle
         -- this logic here.

-        if shouldApply(global, entry) and correctSpec(entry, GetActiveTalentGroup()) and entry.key then
+        if shouldApply(global, entry) and correctSpec(entry, GetActiveSpecGroup()) and entry.key then
             -- Check to see if this is a 'friend' or an 'enemy' binding, and
             -- check if it would mask an 'ooc' binding with the same key. If
             -- so, we need to add code that prevents this from happening, by
@@ -759,7 +759,7 @@ function addon:TalentGroupChanged()
     local newProfile

 	if self.settings.specswap then
-		self.talentGroup = GetActiveTalentGroup()
+		self.talentGroup = GetActiveSpecGroup()
         -- Determine which profile to set, based on talent group
         if self.talentGroup == 1 and self.settings.pri_profileKey then
             newProfile = self.settings.pri_profileKey
diff --git a/attribute_tests.lua b/attribute_tests.lua
index 933c750..071d628 100644
--- a/attribute_tests.lua
+++ b/attribute_tests.lua
@@ -468,7 +468,7 @@ button:SetAttribute("spell2", nil)]],
 for idx, test in ipairs(tests) do
 	io.stdout:write("[" .. test.name .. "]")
 	addon.bindings = test.bindings
-	function GetActiveTalentGroup()
+	function GetActiveSpecGroup()
 		return test.talentGroup and test.talentGroup or 1
 	end