NY CPLR § 1412. Burden of pleading;  burden of proof

Culpable conduct claimed in diminution of damages, in accordance with , shall be an affirmative defense to be pleaded and proved by the party asserting the defense.