Quantcast

Add new power-type parameters to be used in SpellInfo().

Author Johnny C. Lam <jlam88@gmail.com>
Author date 2014-04-21 05:02:07
Author local date 2014-04-21 05:02:07 +0000
Committer Johnny C. Lam <jlam88@gmail.com>
Committer date 2014-04-21 05:02:07
Committer local date 2014-04-21 05:02:07 +0000
Commit c3bedc4082e6a289201109b3c8d9c00d4aff32fb
Tree 0795db3a33feb97e2b1147ac4a71773b8e1a5032
Parent e120b2aad4ae206584e6cb5af5679ad0bcd6136a
Add new power-type parameters to be used in SpellInfo().

- Make the "buff no cost" and "buff half cost" parameters power-specific.

  The new parameters are now:

    buff_<powerType>_none, e.g., "buff_chi_none", "buff_focus_none", etc.
    buff_<powerType>_half, e.g., "buff_energy_half", etc.

- Add "min_<powerType>" parameter for minimum resource requirements.

- Add "max_<powerType>" parameter for maximum resource requirements.

  For example, a holy power "finisher" denoted by holy=0 can be capped at
  using a maximum of 3 holy power.

- Teach state:PowerCost() to properly return the cost of a "finisher"
  spell that consumes all (or some variable portion) of the resource.

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