Updated Clique to use ACTIVE_TALENT_GROUP_CHANGED
James Whitehead II [03-28-09 - 10:20]
Updated Clique to use ACTIVE_TALENT_GROUP_CHANGED
diff --git a/Clique.lua b/Clique.lua
index 62d9128..d6ad277 100644
--- a/Clique.lua
+++ b/Clique.lua
@@ -69,7 +69,7 @@ function Clique:Enable()
self:RegisterEvent("PLAYER_REGEN_DISABLED")
self:RegisterEvent("LEARNED_SPELL_IN_TAB")
- self:RegisterEvent("PLAYER_TALENT_UPDATE")
+ self:RegisterEvent("ACTIVE_TALENT_GROUP_CHANGED")
-- Change to correct profile based on talent spec
if self.db.char.switchSpec then
@@ -720,22 +720,17 @@ function Clique:ShowBindings()
CliqueTooltip:Show()
end
-function Clique:PLAYER_TALENT_UPDATE()
- local newGroup = GetActiveTalentGroup()
-
- if self.db.char.switchSpec and newGroup ~= self.talentGroup then
- self.talentGroup = newGroup
+function Clique:PLAYER_TALENT_UPDATE(event, newGroup, prevGroup)
+ if self.db.char.switchSpec then
self:Print("Detected a talent spec change, changing profile")
- if self.talentGroup == 1 and self.db.char.primaryProfile then
+ if newGroup == 1 and self.db.char.primaryProfile then
self.db:SetProfile(self.db.char.primaryProfile)
- elseif self.talentGroup == 2 and self.db.char.secondaryProfile then
+ elseif newGroup == 2 and self.db.char.secondaryProfile then
self.db:SetProfile(self.db.char.secondaryProfile)
end
if CliqueFrame then
CliqueFrame.title:SetText("Clique v. " .. Clique.version .. " - " .. tostring(Clique.db.keys.profile));
end
- else
- self.talentGroup = newGroup
end
end
diff --git a/Localization.ruRU.lua b/Localization.ruRU.lua
index 425ce31..43db338 100644
--- a/Localization.ruRU.lua
+++ b/Localization.ruRU.lua
@@ -20,7 +20,7 @@ if GetLocale() == "ruRU" then
L.CLICKSET_OOC = "Вне боя"
L.CLICKSET_BEARFORM = "Облик медведя"
L.CLICKSET_CATFORM = "Облик кошки"
- L.CLICKSET_AQUATICFORM = "Водный облик"
+ L.CLICKSET_AQUATICFORM = "Водный облик"
L.CLICKSET_TRAVELFORM = "Походный облик"
L.CLICKSET_MOONKINFORM = "Облик лунного совуха"
L.CLICKSET_TREEOFLIFE = "Древо Жизни"