From b2f37296a91bdcba69d34a7d5a1a1b2f9c4e8ab2 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Sat, 30 Jun 2012 14:36:57 +0100 Subject: [PATCH] Update for talent group changes --- Clique.lua | 4 ++-- attribute_tests.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 1.7.9.5