Quantcast

Don't compile the script so often during combat.

Author Johnny C. Lam <jlam88@gmail.com>
Author date 2012-10-16 02:21:13
Author local date 2012-10-16 02:21:13 +0000
Committer Johnny C. Lam <jlam88@gmail.com>
Committer date 2012-10-16 02:21:13
Committer local date 2012-10-16 02:21:13 +0000
Commit 71f3977dbf1ea3ea3cb5808bb341c2b43f66c7b0
Tree c8b641d3e246da6139d53f8e8e229971528f388f
Parent 0e398e3816e352ffb5492e8ca2946d2441b8435c
Don't compile the script so often during combat.

The UPDATE_SHAPESHIFT_FORM event fires far more often than it should
according to the documentation.  It will fire even when the player's
shapeshift form or stance doesn't change.  Modify the OvaleAura to catch
UPDATE_SHAPESHIFT_FORM(S) and verify that the stance actually changed
before raising a new event Ovale_UpdateShapeshiftForm that may caught by
other Ovale modules that care about stances.

This should fix the problem where the script was compiling very often
during combat for some classes.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@600 d5049fe3-3747-40f7-a4b5-f36d6801af5f