---@diagnostic disable: missing-return, lowercase-global ---@param index number ---@param bookType spell ---@param pet ---@param spell ---@param name string ---Enables or disables automatic casting of a spell. Generally only pet spells can be autocast. function ToggleSpellAutocast(index, bookType, pet, spell, name) end