I found a visual bug. On turn 23, Chansey is switched in, but has a Calyrex-Shadow sprite (before turning into Palkia with imposter). It probably has something to do with the fact that it previously (on turn 1) turned into a Calyrex-Shadow. The replay is below and I'll attach a snapshot showing...