API:CastSpellByName

Cast's a spell by its name. CastSpellByName("Spell name", "unit")

Arguments

 * name
 * String - Name of the spell to cast.
 * unit - optional
 * String - Name of the unit

Returns

 * nil

Example
CastSpellByName("Urgent Heal") CastSpellByName("Urgent Heal","player")