UnitTarget
function

Description
Get a unit's target.

Arguments
Unit A pointer to a unit or a unit ID.

Returns
Target A pointer to the unit's target, or nil if it does not have one.