API types/SpellIdentifier
Jump to navigation
Jump to search
SpellIdentifier (number|string)
can be a Spell ID, name, name(subtext), or link.
- When passing a localized name it requires the spell to be in your spellbook.
Used by
Global API
|
Last updated: 11.0.2
Example
-- by spell ID
local spell1 = C_Spell.GetSpellInfo(585)
-- by spell link
local spell2 = C_Spell.GetSpellInfo("|cff71d5ff|Hspell:585:0|h[Smite]|h|r")
-- by spell name (requires Priest and enUS locale)
local spell3 = C_Spell.GetSpellInfo("Smite")