Skip to content

Commit 002826e

Browse files
committed
Preserve next-round duel state after reveal
1 parent a309713 commit 002826e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

app/js/ui/screens/duel.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,11 @@ var DuelScreen = (function() {
815815
duelState.phase = 'result';
816816
duelState.finalWinsMe = _countWinsForUser(duel.roundResults, user);
817817
duelState.finalWinsOpp = _countLossesForUser(duel.roundResults, user);
818-
} else if (duelState.phase === 'waiting' || duelState.phase === 'seal') {
818+
} else if ((duelState.phase === 'waiting' || duelState.phase === 'seal') &&
819+
duelState.currentRound <= duel.roundResults.length) {
820+
// Only stay on reveal for the most recently resolved round.
821+
// Once the player has advanced to the next round, do not
822+
// force the UI back into the prior round's reveal screen.
819823
duelState.phase = 'reveal';
820824
}
821825
}

0 commit comments

Comments
 (0)