On turn 23 of this battle my opponents' "Roar" goes before my "Trick Room" forcing me to switch before my move is made. Because Roar has low priority it should almost alway go last so it shouldn't have gone before any of my moves. This is a bug right?
http://replay.pokemonshowdown.com/uu-361827254