Caveat
No edit summary |
(Caveat) |
||
| Line 19: | Line 19: | ||
==Note== | ==Note== | ||
Use "spell" or SpellBookFrame.booktype as the spellbookType for any non-pet spell. The id is counted from 1 through all spell types (tabs on the right side of SpellBookFrame). Pet spells also start from 1. (See example above). The CastSpell function can not be used outside Blizzard-signed code. | Use "spell" or SpellBookFrame.booktype as the spellbookType for any non-pet spell. The id is counted from 1 through all spell types (tabs on the right side of SpellBookFrame). Pet spells also start from 1. (See example above). The CastSpell function can not be used outside Blizzard-signed code. | ||
Although this function is protected, you can still use it to open Craft windows and activate Lock Picking. | |||