修正开局第一轮抽卡, playerid设置错误的问题

This commit is contained in:
zhl 2020-12-04 15:23:42 +08:00
parent 6cce9c9688
commit a836f6f1c6

View File

@ -42,7 +42,7 @@ export class ChangeCardCommand extends Command<CardGameState, { client: Client,
this.state.round = 0;
let curPlayer = this.state.players.get(curClient.sessionId);
let cards = gameUtil.drawCard(this.state.cardQueue, curPlayer, singleton(GameEnv).roundDrawNum);
this.room.sDrawCard(curClient, {player: sessionId, cards})
this.room.sDrawCard(curClient, {player: curClient.sessionId, cards})
this.state.gameState = GameStateConst.STATE_BEGIN_DRAW;
}
}