Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API GetSpellAutocast
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{wowapi}} __NOTOC__ <!-- Describe the purpose of the function, exhausting detail can be saved for a later section --> Get information about a spell's Autocast. <!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> autocastable, autostate = GetSpellAutocast("spellName" | spellId, bookType) == Arguments == <!-- List each argument, together with its type --> :;spellName: String - the name of the spell. :;spellId : Numeric - 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, autostate :;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 == *As of patch 3.0.3, the only auto-castable spells exist in the pet spellbook (BOOKTYPE_PET). *Both return values will be nil in the following conditions: **The spell is not autocastable **The spell does not exist (or you don't know it)
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Wowapi
(
edit
)