skill doesn't count towards colours, 0 colour skill case, fk tutorial

This commit is contained in:
Mashy
2021-03-20 13:53:39 +10:00
parent 7576081c52
commit a280c4686e
3 changed files with 44 additions and 41 deletions
+3 -2
View File
@@ -177,14 +177,15 @@ function registerEvents(store) {
}
function setInstance(v) {
const { account, ws, tutorial } = store.getState();
const { account, ws } = store.getState();
if (v) {
setInvite(null);
setPvp(false);
clearTutorial();
const player = v.players.find(p => p.id === account.id);
store.dispatch(actions.setPlayer(player));
if (tutorial && v.rounds.length === 1 && v.time_control === 'Practice') tutorialVbox(player, store, tutorial);
// if (tutorial && v.rounds.length === 1 && v.time_control === 'Practice') tutorialVbox(player, store, tutorial);
if (v.phase === 'Finished') {
ws.sendAccountInstances();