超时后, 如果有玩家未操作, 也进入下一轮

This commit is contained in:
zhl 2020-12-08 17:22:09 +08:00
parent e3eb6f5a46
commit 8b9b07ff1c

View File

@ -102,6 +102,8 @@ export class EatConfirmCommand extends Command<CardGameState, { timeUp: boolean
client.send('eat_card_s2c', {errcode: 9, errmsg: '吃卡失败'}); client.send('eat_card_s2c', {errcode: 9, errmsg: '吃卡失败'});
} }
} }
} else if (!player && timeUp) {
return [new TurnEndCommand()];
} }
} }