How do painters handle water-damaged surfaces before painting?

They identify and fix the moisture source first, then repair the damaged area, apply stain-blocking primer, and ensure the surface is fully dry.