Quantcast

Update stance list when a new spell is learned.

Johnny C. Lam [04-23-13 - 17:21]
Update stance list when a new spell is learned.

Learning a new spell may change the stance bar, e.g., while leveling or
gaining a new talent or a new temporary ability.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@907 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleStance.lua
diff --git a/OvaleStance.lua b/OvaleStance.lua
index 7a6d8c2..fb48e89 100644
--- a/OvaleStance.lua
+++ b/OvaleStance.lua
@@ -78,6 +78,7 @@ function OvaleStance:OnEnable()
 	self:RegisterEvent("PLAYER_ALIVE", "UpdateStances")
 	self:RegisterEvent("PLAYER_ENTERING_WORLD", "UpdateStances")
 	self:RegisterEvent("PLAYER_TALENT_UPDATE", "UpdateStances")
+	self:RegisterEvent("SPELLS_CHANGED", "UpdateStances")
 	self:RegisterEvent("UPDATE_SHAPESHIFT_FORM")
 	self:RegisterEvent("UPDATE_SHAPESHIFT_FORMS")
 end
@@ -87,6 +88,7 @@ function OvaleStance:OnDisable()
 	self:UnregisterEvent("PLAYER_ALIVE")
 	self:UnregisterEvent("PLAYER_ENTERING_WORLD")
 	self:UnregisterEvent("PLAYER_TALENT_UPDATE")
+	self:UnregisterEvent("SPELLS_CHANGED")
 	self:UnregisterEvent("UPDATE_SHAPESHIFT_FORM")
 	self:UnregisterEvent("UPDATE_SHAPESHIFT_FORMS")
 end