In all actions or proceedings hereafter commenced against any employer who is self-insured, or insurance company, including any reciprocal or interinsurance exchange, on any policy or certificate of any type or kind of insurance, if it appears from the evidence that such company or exchange has refused to pay the full amount of such loss, and that such refusal is vexatious or without reasonable cause, the Department of Labor and Regulation, the trial court and the appellate court, shall, if judgment or an award is rendered for plaintiff, allow the plaintiff a reasonable sum as an attorney's fee to be recovered and collected as a part of the costs, provided, however, that when a tender is made by such insurance company, exchange or self-insurer before the commencement of the action or proceeding in which judgment or an award is rendered and the amount recovered is not in excess of such tender, no such costs shall be allowed. The allowance of attorney fees hereunder shall not be construed to bar any other remedy, whether in tort or contract, that an insured may have against the same insurance company or self-insurer arising out of its refusal to pay such loss.
SDCL 58-12-3