When a player has chosen her move in a battle, the screen hides the UI on the bottom and replaces it with text that reads, "waiting for opponent." Unfortunately, after a page refresh, this state is lost and the UI to select a move appears again. The move selection is enforced server-side, so the player will see an error message when she tries to select a move again.
Instead, we should make sure that the "waiting for opponent" state is enforced across page refresh.
When a player has chosen her move in a battle, the screen hides the UI on the bottom and replaces it with text that reads, "waiting for opponent." Unfortunately, after a page refresh, this state is lost and the UI to select a move appears again. The move selection is enforced server-side, so the player will see an error message when she tries to select a move again.
Instead, we should make sure that the "waiting for opponent" state is enforced across page refresh.