Returns information about automatic casting for a spell in the spellbook. Generally, only certain pet spells can be autocast.
See also Spell functions.
Signature:
autocastAllowed, autocastEnabled = GetSpellAutocast(id, "bookType")
Arguments:
id- Index of a spell in the spellbook (number, spellbookID)bookType- Type of spellbook (string)pet- The pet's spellbookspell- The player's spellbook
Returns:
autocastAllowed- 1 if automatic casting is allowed for the action; otherwise nil (1nil)autocastEnabled- 1 if automatic casting is currently turned on for the action; otherwise nil (1nil)