From 002cc8fc35d001c7bfa95ca57e884c5e0e7ffc18 Mon Sep 17 00:00:00 2001 From: zhl Date: Tue, 8 Dec 2020 17:37:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=E4=B8=80=E4=BA=9B=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rooms/commands/DiscardCommand.ts | 2 +- src/rooms/commands/EatConfirmCommand.ts | 4 ++-- src/rooms/commands/SelectPetCommand.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rooms/commands/DiscardCommand.ts b/src/rooms/commands/DiscardCommand.ts index 05d3780..5713cf0 100644 --- a/src/rooms/commands/DiscardCommand.ts +++ b/src/rooms/commands/DiscardCommand.ts @@ -44,7 +44,7 @@ export class DiscardCommand extends Command= playerCount) { // 所有人都放弃了, 则取消定时, 直接进入下一轮 - if (this.room.mainClock && this.room.mainClock.active) { + if (this.room.mainClock?.active) { this.room.mainClock.clear(); } return [new TurnEndCommand()]; @@ -67,7 +67,7 @@ export class EatConfirmCommand extends Command