Fix: Auto-avanzar de MISSION_REVEAL a MISSION_RESULT

- Servidor avanza automáticamente después de 5 segundos
- Resuelve problema de quedarse bloqueado en pantalla de votos
- Cliente muestra 'Procesando resultado...'
This commit is contained in:
Resistencia Dev
2025-12-05 23:57:46 +01:00
parent 4b4936449a
commit ead54e0102
2 changed files with 21 additions and 3 deletions

View File

@@ -243,8 +243,14 @@ export class Game {
this.state.revealedVotes = shuffledVotes; // Las cartas a revelar
this.log(`Misión ${round} completada. Revelando votos...`);
// Auto-avanzar a MISSION_RESULT después de 5 segundos
setTimeout(() => {
this.finishReveal();
}, 5000);
}
// Método para avanzar desde MISSION_REVEAL a MISSION_RESULT
finishReveal() {
this.state.phase = GamePhase.MISSION_RESULT;