Wikia

WoWWiki

API GetSpellInfo

Talk4
102,090pages on
this wiki
WoW API < GetSpellInfo

Get information about a spell.

name, rank, icon, castTime, minRange, maxRange 
= GetSpellInfo(spellId or spellName or spellLink)


Arguments Edit

(spellId or spellName or spellLink
spellId 
Integer - The global spell number, found on wowhead or through COMBAT_LOG_EVENT.
spellName 
String - The Name of the spell.
spellLink 
String - The formatted link to the spell [Note: this appears to be broken, see Discussion page]


Returns Edit

name, rank, icon, cost, isFunnel, powerType, castTime, minRange, maxRange
name 
String - The name of the spell.
rank 
String - The rank of the spell. Returns as an empty string if there is no rank.

Cataclysm-Logo-SmallReturns 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 Edit

cost, powerType, and isFunnel was removed in 6.0

ArgumentsEdit

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.

Around Wikia's network

Random Wiki