Sec. 115. (1) A person or association of co-owners adversely affected by a violation of or failure to comply with this act, rules promulgated under this act, or any provision of an agreement or a master deed may bring an action for relief in a court of competent jurisdiction. The court may award costs to the prevailing party. (2) A developer who offers or sells a condominium unit in violation of section 21 or 84a is liable to the person purchasing the condominium unit for damages.