WoW:API GetSpellInfo: Difference between revisions
Jump to navigation
Jump to search
→Returns
Line 4: | Line 4: | ||
Get information about a spell. | Get information about a spell. | ||
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> | <!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> | ||
name, rank, icon | name, rank, icon, castTime, minRange, maxRange | ||
= GetSpellInfo(spellId or spellName or spellLink) | = GetSpellInfo(spellId or spellName or spellLink) | ||
Line 15: | Line 15: | ||
:;spellName : String - The Name of the spell. | :;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] | :;[[SpellLink|spellLink]] : String - The formatted link to the spell [Note: this appears to be broken, see Discussion page] | ||
== Returns == | == Returns == | ||
:name, rank, icon, cost, isFunnel, powerType, castTime, minRange, maxRange | : name, rank, icon, cost, isFunnel, powerType, castTime, minRange, maxRange | ||
:;name : String - The name of the spell. | :; name : String - The name of the spell. | ||
:;rank : String - The rank of the spell. Returns as an empty string if there is no rank. | :; rank : String - The rank of the spell. Returns as an empty string if there is no rank. | ||
{{cata-inline}} Returns a list of stances for warrior abilities. | {{cata-inline}}Returns a list of stances for warrior abilities. | ||
:; 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 == | == Details == | ||
cost, powerType, and isFunnel was removed in 6.0 | |||
===Arguments=== | ===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. | 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. | ||