Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Register
Advertisement

Casts a spell by name.

CastSpellByName(spellName[, target])

Arguments[]

name
string - Name of the spell to cast, e.g. "Alchemy".
target
string? : UnitId - The unit to cast the spell on. If omitted, "target" is assumed for spells that require a target.

Details[]

  • You can still use this function to open trade skill windows and to summon mounts even from a tainted execution path.

Patch changes[]

Bc icon Patch 2.0.1 (2006-12-05): Protected.

Advertisement