Quantcast

Enhance GetAura methods to accept the name of a spell list.

Author Johnny C. Lam <jlam88@gmail.com>
Author date 2013-03-23 21:39:03
Author local date 2013-03-23 21:39:03 +0000
Committer Johnny C. Lam <jlam88@gmail.com>
Committer date 2013-03-23 21:39:03
Committer local date 2013-03-23 21:39:03 +0000
Commit 7b229482225c5a12b2dfe0fae2161d8b39d117a9
Tree 3957f9f80efa6cdcdaa1e1bddb4130edc0c4552f
Parent 082761364d1eecc6defc6835884e746302a2c228
Enhance GetAura methods to accept the name of a spell list.

This allows for doing things like:

    OvaleAura:GetAura("player", "melee_haste", "HELPFUL")
    OvaleState:GetAura("player", "melee_haste", "HELPFUL")

to get the first buff from the melee_haste spell list that is found on the
player.

As a side-effect of this change, the SpellInfo parameters that take a
buff spell ID, e.g., buffnocd, buff_combo, etc., can now take a spell list
name instead.

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