API GetSpellInfo

Returns spell info.
 name, rank, icon, castTime, minRange, maxRange, spellID, originalIcon
 = GetSpellInfo(spell)
 = GetSpellInfo(index, bookType)
==Arguments==
==Returns==
:;name: - The localized name of the spell.
:;rank: - Always returns nil. Refer to () for retrieving the rank of spells on Classic.
:;icon: : FileID - The spell icon texture.
:;castTime: - Cast time in milliseconds, or 0 for instant spells.
:;minRange: - Minimum range of the spell, or 0 if not applicable.
:;maxRange: - Maximum range of the spell, or 0 if not applicable.
:;spellID: - The ID of the spell.
:;originalIcon: : FileID - The original icon texture for this spell.
==Details==
* The player's form or stance may affect return values on relevant spells, such as a warlock's Corruption spell transforming to Doom while Metamorphosis is active.
* When dealing with base spells that have been overridden by another spell, the icon return will represent the icon of the overriding spell, and originalIcon the icon of the base spell.
** For example, if a Rogue has learned Gloomblade then any queries for Backstab will yield Gloomblades' icon as the icon return, and the original icon for Backstab would be exposed through the originalIcon return value.
==Example==
/dump GetSpellInfo(2061) -- "Flash Heal", nil, 135907, 1352, 0, 40, 2061
==Patch changes==
==References==