Investors & landlords

It depends on the circumstances.  You said "repairs" which implies nothing was "disposed".

 

You are getting tangled in two complex areas of tax law (casualties and dispositions), which is difficult or impossible to properly navigate through via an online forum.  You may consider a tax professional.