Enables or disables automatic casting of a spell. Generally only pet spells can be autocast.
See also Spell functions.
Signature:
ToggleSpellAutocast(index,
"bookType")
or
ToggleSpellAutocast("name")
Arguments:
index
- Index of a spell in the spellbook (number
, spellbookID)bookType
- Type of spellbook (string
)pet
- The pet's spellbookspell
- The player's spellbook
name
- Name of a spell (string
)