I've found a bug with how the ruin abilities are working. The calculator doesn't check to see if both pokemon have the same ruin ability, which should make them immune to each other (i.e. two chien-paos don't lower each other's defenses) according to Bulbapedia. Luckily showdown appears to...