If an injury for which compensation is payable under this title has been sustained under circumstances creating in some other person than the employer a legal liability to pay damages in respect thereto, the injured employee may, at the employee's option, either claim compensation or proceed at law against such other person to recover damages or proceed against both the employer and such other person. However, in the event the injured employee recovers any like damages from such other person, the recovered damages shall be an offset against any workers' compensation which the employee would otherwise have been entitled to receive.
SDCL 62-4-38