That sort of damage should be repairable write-off as just uneconomical to repair. However some water damaged cars are a stat writeoff so people don't buy cars unaware of it's history and have continuous problems.