wowpedia
Main Menu


Returns true if a (pet) spell is autocastable.

autocastable, autostate = GetSpellAutocast("spellName" or spellId, bookType)

Arguments

spellName
string - the name of the spell.
spellId
number - the offset (position) of spell in spellbook. SpellId can change when you learn new spells.
bookType
string - Either BOOKTYPE_SPELL ("spell") or BOOKTYPE_PET ("pet").

Returns

autocastable
number - whether a spell is autocastable.
Returns 1 if the spell is autocastable, nil otherwise.
autostate
number - whether a spell is currently set to autocast.
Returns 1 if the spell is currently set for autocast, nil otherwise.

Details