Quantcast

Fix error with using Mind Blast in default priest script.

Author Johnny C. Lam <jlam88@gmail.com>
Author date 2013-11-07 20:59:45
Author local date 2013-11-07 20:59:45 +0000
Committer Johnny C. Lam <jlam88@gmail.com>
Committer date 2013-11-07 20:59:45
Committer local date 2013-11-07 20:59:45 +0000
Commit 8bcd11faa79bdbc6b23a18b9540cb39b5aec2ba6
Tree 00a496ce98434827e7d84f211171a7c478700755
Parent 0bd3f17799dd169b8655eddcf29ac2a6220f7ca8
Fix error with using Mind Blast in default priest script.

- Remove spurious "test" parameter to SpellInfo that shouldn't be there.

- If a condition that returns a number is used as a boolean, then boolean
  evaluation rules dictate that non-zero is true and zero is false.  Fix:

    if SpellCooldown(mind_blast) Spell(mind_blast)

  was probably intended to be:

    if SpellCooldown(mind_blast) == 0 Spell(mind_blast)

  which is simply just:

    Spell(mind_blast)

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