I think there's a glitch that occurs when pokemon faint and their ability continues to be shared if the partner that was on field with them stays in.
In this replay, Diancie faints on Turn 12, but Clear Body is still active on Cresselia in Turn 15 and 16...