Fix stance update if talent causes new stance to overwrite an old name.
Johnny C. Lam [04-21-14 - 05:01]
Fix stance update if talent causes new stance to overwrite an old name.
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1295 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleStance.lua b/OvaleStance.lua
index 5f62650..ac9339f 100644
--- a/OvaleStance.lua
+++ b/OvaleStance.lua
@@ -94,6 +94,12 @@ function OvaleStance:OnDisable()
self:UnregisterEvent("UPDATE_SHAPESHIFT_FORMS")
end
+function OvaleStance:PLAYER_TALENT_UPDATE(event)
+ -- Clear old stance ID since talent update may overwrite old stance with new one with same ID.
+ self.stance = nil
+ UpdateStances()
+end
+
function OvaleStance:UPDATE_SHAPESHIFT_FORM(event)
self:ShapeshiftEventHandler()
end