Quantcast

Work around bug in Blizzard's IsUsableSpell() API function.

Author Johnny C. Lam <jlam88@gmail.com>
Author date 2014-04-06 18:47:41
Author local date 2014-04-06 18:47:41 +0000
Committer Johnny C. Lam <jlam88@gmail.com>
Committer date 2014-04-06 18:47:41
Committer local date 2014-04-06 18:47:41 +0000
Commit df93aba81d90ed83df63a176e672d6d5023688db
Tree ff45cea7d54e31002dcb6acdcfaef10990ffc57d
Parent 43ef022de0a1757d670cbc41e7ddb4a2991f8c89
Work around bug in Blizzard's IsUsableSpell() API function.

IsUsableSpell() doesn't always return the truth when given a spell ID, but
its accuracy improves when given a spell name.  Wrap the API function in
OvaleSpellBook so that it silently translates the spell ID to a spell name
before invoking IsUsableSpell().

Bug noted and workaround suggested by @ShmooDude.

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