ready through tutorial face off faster

This commit is contained in:
Mashy 2019-11-12 15:15:29 +10:00
parent 3a498616fb
commit af2f145d17

View File

@ -223,7 +223,8 @@ function registerEvents(store) {
}
if (v.phase_end && v.phase === 'Lobby' && !autoReady) {
const autoReadyDelay = Date.parse(v.phase_end) - Date.now() - 1000;
const skip = v.time_control === 'Practice' ? 10000 : 2000;
const autoReadyDelay = Date.parse(v.phase_end) - Date.now() - skip;
autoReady = setTimeout(() => {
ws.sendInstanceReady(v.id);
autoReady = null;