将吃到的牌加入到当前玩家出的牌队列中
This commit is contained in:
parent
4b684bb524
commit
cc48656536
@ -57,8 +57,8 @@ export class DiscardCommand extends Command<CardGameState, { client: Client, car
|
||||
this.room.send(client,'discard_card_s2c', {errcode: 5, errmsg: '找不到要吃的牌'});
|
||||
return;
|
||||
}
|
||||
let tmpCards2 = tmpCards.concat(...this.state.cards.values())
|
||||
if (!gameUtil.checkDiscard(tmpCards2, new GameEnv().otherEatCount)) {
|
||||
tmpCards = tmpCards.concat(...this.state.cards.values())
|
||||
if (!gameUtil.checkDiscard(tmpCards, new GameEnv().otherEatCount)) {
|
||||
this.room.send(client,'discard_card_s2c', {errcode: 4, errmsg: '出牌不符合规则'});
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user