World of Warcraft Forever API · GetSpellDescription.md, for your AI
GetSpellDescription is not in Forever
An addon that calls it stops at /reload with attempt to call global 'GetSpellDescription' (a nil value). Write C_Spell.GetSpellDescription instead: its arguments and returns may differ from the old GetSpellDescription, read them below.
C_Spell.GetSpellDescription
description = C_Spell.GetSpellDescription(spellIdentifier)
Returns nil if spell is not found
May return nothing.
Arguments
spellIdentifier | SpellIdentifier |
|---|
Returns
description | string | May be empty if spell's data isn't loaded yet; Listen for SPELL_TEXT_UPDATE event, or use SpellMixin to load asynchronously |
|---|
Every other call of the C_Spell system: C_Spell. The WowAddons app checks a whole addon before the game does: wowaddons check names each call Forever lacks and what to write instead.
Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.