Quantcast

Force a full compile if player gains new talents.

Johnny C. Lam [10-23-12 - 03:08]
Force a full compile if player gains new talents.

New talents could mean new spells in the spellbook, so reprocess the
entire script in case the new spells are referenced in the script.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@615 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleData.lua
diff --git a/OvaleData.lua b/OvaleData.lua
index 9dcd7d2..9bd263c 100644
--- a/OvaleData.lua
+++ b/OvaleData.lua
@@ -272,9 +272,10 @@ function OvaleData:CHARACTER_POINTS_CHANGED()
 --	Ovale:Print("CHARACTER_POINTS_CHANGED")
 end

-function OvaleData:PLAYER_TALENT_UPDATE()
+function OvaleData:PLAYER_TALENT_UPDATE(event)
+	Ovale:debugPrint("compile", event)
 	self:RemplirListeTalents()
---	Ovale:Print("PLAYER_TALENT_UPDATE")
+	Ovale.needCompile = "full"
 end

 function OvaleData:UNIT_PET()