Casts the spell currently awaiting a target on an item. Usable when the player has attempted to cast a spell (e.g. an Enchanting recipe or the "Use:" effect of a sharpening stone or fishing lure) but the spell requires a target before it can begin casting (i.e. the glowing hand cursor is showing).


See also Spell functions, Item functions.

Signature:

SpellTargetItem(itemID) or SpellTargetItem("itemName") or SpellTargetItem("itemLink")

Arguments:

  • itemID - An item's ID (number)
  • itemName - An item's name (string)
  • itemLink - An item's hyperlink, or any string containing the itemString portion of an item link (string)
This function is protected and can only be called by the Blizzard user interface