单张牌可下随从时, 效果卡和点数卡不进入选随从轮

This commit is contained in:
zhl 2021-03-03 16:12:59 +08:00
parent 1c977139f4
commit c745f9165b

View File

@ -124,7 +124,8 @@ export class DiscardCommand extends Command<CardGameState, { client: Client, car
cards: cards,
type: dtype
})
if (cards.length === 1 && !new RoomOptions().singleEat()) {
if (cards.length === 1
&& !(new RoomOptions().singleEat() && tmpCards.length == 1 && (tmpCards[0].type == 1 || tmpCards[0].type == 11))) {
let cardArr: Card[] = [...this.state.cards.values()]
let time = this.room.battleMan.onCardDiscarded(player, cardArr[0])
await this.delay(time)