修正开局第一轮抽卡, playerid设置错误的问题
This commit is contained in:
parent
6cce9c9688
commit
a836f6f1c6
@ -42,7 +42,7 @@ export class ChangeCardCommand extends Command<CardGameState, { client: Client,
|
|||||||
this.state.round = 0;
|
this.state.round = 0;
|
||||||
let curPlayer = this.state.players.get(curClient.sessionId);
|
let curPlayer = this.state.players.get(curClient.sessionId);
|
||||||
let cards = gameUtil.drawCard(this.state.cardQueue, curPlayer, singleton(GameEnv).roundDrawNum);
|
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;
|
this.state.gameState = GameStateConst.STATE_BEGIN_DRAW;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user