Enables or disables automatic casting of a spell. Generally only pet spells can be autocast.

See also Spell functions.


ToggleSpellAutocast(index, "bookType") or ToggleSpellAutocast("name")


  • index - Index of a spell in the spellbook (number, spellbookID)

  • bookType - Type of spellbook (string)

    • pet - The pet's spellbook
    • spell - The player's spellbook

  • name - Name of a spell (string)