Lore archive · Warcraft Wiki, 2023 dump
API CastSpellByName
Last wiki revision 2023-08-24
Casts a spell by name. CastSpellByName(spellName[, target])
- name: - Name of the spell to cast, e.g. "Alchemy".
- target: : UnitId - The unit to cast the spell on. If omitted, "target" is assumed for spells that require a target.
- You can still use this function to open trade skill windows and to summon mounts even from a tainted execution path.
Source
https://warcraft.wiki.gg/wiki/API_CastSpellByName · 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.