Lore archive · Warcraft Wiki, 2023 dump
API GetSpellInfo
Last wiki revision 2022-10-03
Returns spell info. name, rank, icon, castTime, minRange, maxRange, spellID, originalIcon = GetSpellInfo(spell) = GetSpellInfo(index, bookType)
- name: - The localized name of the spell.
- rank: - Always returns . 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.
- 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 return will represent the icon of the overriding spell, and 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 return, and the original icon for Backstab would be exposed through the return value.
Source
https://warcraft.wiki.gg/wiki/API_GetSpellInfo · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.