Quantcast

Get correct spell ID for spells in the spellbook.

Author Johnny C. Lam <jlam88@gmail.com>
Author date 2013-10-19 17:24:25
Author local date 2013-10-19 17:24:25 +0000
Committer Johnny C. Lam <jlam88@gmail.com>
Committer date 2013-10-19 17:24:25
Committer local date 2013-10-19 17:24:25 +0000
Commit 69f0d7acf63620ceb27c55062ef067f915738d8d
Tree 76a7d7f9f08affd53806fe328f94170f2d860c8b
Parent 6ae5668ebc479beeb51d91c281951961b84b4e02
Get correct spell ID for spells in the spellbook.

When looping through the spellbook, GetSpellBookItemName() doesn't always
return the name of the spell that's currently showing in the spellbook;
instead it might show the underlying spell that may have been replaced by
a new spell by either talents, glyphs, Symbiosis, etc.

Use GetSpellLink() instead to get the hyperlink of the actual spell that's
showing in the spellbook and parse it to determine the correct spell ID
and spell name.  Associate both the original (replaced) spell ID and the
the true spell ID with the correct spell name as some scripts, e.g.
Leafkiller's feral script, reference the spell using the replaced spell
ID.

Fix by @ShmooDude and closes his tickets 282 and 283.

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