Update player's spells/glyphs/talents when a spec-change is detected.
Johnny C. Lam [08-10-13 - 18:38]
Update player's spells/glyphs/talents when a spec-change is detected.
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@995 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleData.lua b/OvaleData.lua
index d689af0..2027f77 100644
--- a/OvaleData.lua
+++ b/OvaleData.lua
@@ -313,6 +313,7 @@ function OvaleData:OnInitialize()
end
function OvaleData:OnEnable()
+ self:RegisterEvent("ACTIVE_TALENT_GROUP_CHANGED", "Update")
self:RegisterEvent("CHARACTER_POINTS_CHANGED", "RemplirListeTalents")
self:RegisterEvent("GLYPH_ADDED", "UpdateGlyphs")
self:RegisterEvent("GLYPH_DISABLED", "UpdateGlyphs")
@@ -327,6 +328,7 @@ function OvaleData:OnEnable()
end
function OvaleData:OnDisable()
+ self:UnregisterEvent("ACTIVE_TALENT_GROUP_CHANGED")
self:UnregisterEvent("CHARACTER_POINTS_CHANGED")
self:UnregisterEvent("GLYPH_ADDED")
self:UnregisterEvent("GLYPH_DISABLED")