Casts the spell currently awaiting a target on a unit


See also Spell functions, Targeting functions.

Signature:

SpellTargetUnit("unit") or SpellTargetUnit("name")

Arguments:

  • unit - A unit to target (string, unitID)
  • name - The name of a unit to target; only valid for player, pet, and party/raid members (string)
This function is protected and can only be called by the Blizzard user interface