Quantcast

Fix ticket #209 regarding stance numbers.

Author Johnny C. Lam <jlam88@gmail.com>
Author date 2013-02-13 19:55:14
Author local date 2013-02-13 19:55:14 +0000
Committer Johnny C. Lam <jlam88@gmail.com>
Committer date 2013-02-13 19:55:14
Committer local date 2013-02-13 19:55:14 +0000
Commit 93c3ef80d413b0606e7b2a74a70d34e0ee0213e2
Tree 9210b5f81b0513bb4c9544dbcb2cc24ab70f0a5d
Parent 0addea7d32b873cd5f3e449da04fce22feac5d14
Fix ticket #209 regarding stance numbers.

There are occasions where the order of stances on the stance/shapeshift
bar differ between Mac and PC, which causes problems in scripts that
reference stance numbers (indices).

Implement new module OvaleStance to track stance and mastery changes.
OvaleStance maps stance indices (in the stance bar) to Ovale stance names
in a locale-independent way.

The list of stance names is available by running "/ovale stance", e.g.:

    druid_bear_form
    druid_cat_form
    monk_stance_of_the_sturdy_ox
    monk_stance_of_the_fierce_tiger
    warrior_battle_stance

These stance names can be used in place of the stance indices, e.g.:

    unless Stance(monk_stance_of_the_sturdy_ox)
        Spell(stance_of_the_sturdy_ox)

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