The thing I'm not quite getting is the following.
In the same turn Slowbro used Rain Dance, the order is
"Ampharos MEga Evolves.
Slowbro Uses Rain Dance
Gogoat uses Horn Leech
Mega Ampharos uses Thunder.
Mega Blaziken faints."
Yet, the next turn, the order is
"Slowbro uses Ice Beam
Gogoat gets frozen, then eats his berry
Shedinja uses (X-Scissor?)
MegaAmpharos uses Dragon Pulse."
At first I thought, since Mega Amphy went last (before MegaBlaziken) he may have gotten a speed boost when Mega Evolved. Unless Gogoat is extremely slow, which I don't see being the case.
Slowbro used trickroom reversing the turn order. Mega Evolving takes priority and Mega Blazikin has speed boost so he went last.