修正玩家初始卡片错误的bug

This commit is contained in:
zhl 2020-12-24 19:20:20 +08:00
parent e0b300c064
commit a218a253d8

View File

@ -20,7 +20,7 @@ export class BeginGameCommand extends Command<CardGameState, {}> {
let cardAll = card0.concat(card1);
cardAll.randomSort();
this.state.cardQueue = cardAll;
let i = 1;
let i = 0;
for (let [id] of this.state.players) {
this.room.addCard(id, new GameEnv().playerInitNums[i++], 0);
}