Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API CastSpell

Last wiki revision 2023-08-24

Casts a spell from the spellbook. CastSpell(spellIndex, spellbookType)

  • spellIndex: - index of the spell to cast.
  • spellbookType: - spellbook to cast the spell from; one of
  • BOOKTYPE_SPELL ("spell") for player spells
  • BOOKTYPE_PET ("pet") for pet abilities
  • This function cannot be used from insecure execution paths except to "cast" trade skills (e.g. Cooking, Alchemy).

Source

https://warcraft.wiki.gg/wiki/API_CastSpell · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.