Targets a unit. Passing nil is equivalent to calling ClearTarget()).
See also Targeting functions.
Signature:
TargetUnit("unit") or TargetUnit("name" [, exactMatch])
Arguments:
unit- A unit to target (string, unitID)name- Name of a unit to target (string)exactMatch- True to check only units whose name exactly matches thenamegiven; false to allow partial matches (boolean)
This function is protected and can only be called by the Blizzard user interface