Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API GetSpellInfo
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. <!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> name, rank, icon, castTime, minRange, maxRange = GetSpellInfo(spellId or spellName or spellLink) == Arguments == <!-- List each argument, together with its type --> :spellId or spellName or spellLink :;spellId : Integer - The global spell number, found on wowhead or through [[API_COMBAT_LOG_EVENT|COMBAT_LOG_EVENT]]. :;spellName : String - The Name of the spell. :;[[SpellLink|spellLink]] : String - The formatted link to the spell [Note: this appears to be broken, see Discussion page] == Returns == : name, rank, icon, castTime, minRange, maxRange ; name : String - The name of the spell. ; rank : String - The rank line from the tooltip of the spell, e.g. "Rank 2". Returns some other classification (like "Summon" for a summoning spell) or an empty string if there is no rank. ; icon : String - The interface path to the icon texture. ; castTime : Number - The cast time, in milliseconds. ; minRange : Number - The minimum range of the spell. ; maxRange : Number - The maximum range of the spell. == Details == cost, powerType, and isFunnel was removed in 6.0 ===Arguments=== Using '''spellId''' as the argument will always return the info. Using '''spellName''' or '''spellLink''' will only return the info if the spell is in your spellbook. Otherwise it will return nil.
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
)