CastSpell

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 1.0.0 / 1.13.2

Casts a spell from the spellbook.

CastSpell(spellIndex, spellbookType)

Arguments

spellIndex
number - index of the spell to cast.
spellbookType
string - spellbook to cast the spell from; one of
  • BOOKTYPE_SPELL ("spell") for player spells
  • BOOKTYPE_PET ("pet") for pet abilities

Details

  • This function cannot be used from insecure execution paths except to "cast" trade skills (e.g. Cooking, Alchemy).

Patch changes

Bc icon.gif Patch 2.0.1 (2006-12-05): Protected.

See also