From fb1923f42190afc287711b37d9c36b3390aa6cff Mon Sep 17 00:00:00 2001 From: zhl Date: Tue, 2 Mar 2021 15:41:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=87=BA=E7=89=8C=E5=92=8C?= =?UTF-8?q?=E9=80=89=E9=9A=8F=E4=BB=8E=E7=8E=A9=E5=AE=B6=E7=81=B5=E6=B4=BB?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=AE=BE=E7=BD=AE=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rooms/commands/DiscardCommand.ts | 2 +- src/rooms/commands/SelectPetCommand.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rooms/commands/DiscardCommand.ts b/src/rooms/commands/DiscardCommand.ts index 3d44def..5938aeb 100644 --- a/src/rooms/commands/DiscardCommand.ts +++ b/src/rooms/commands/DiscardCommand.ts @@ -110,7 +110,7 @@ export class DiscardCommand extends Command= 0) { let maxTime = new GameEnv().maxDiscardTime * 1000 let count = elapsedTime - maxTime - let newCount = player.extraTime - Math.min(count, 0) + let newCount = player.extraTime - Math.max(count, 0) player.extraTime = Math.max(newCount, 0) } for (let card of tmpCards) { diff --git a/src/rooms/commands/SelectPetCommand.ts b/src/rooms/commands/SelectPetCommand.ts index a3b4975..e2d46e4 100644 --- a/src/rooms/commands/SelectPetCommand.ts +++ b/src/rooms/commands/SelectPetCommand.ts @@ -77,7 +77,7 @@ export class SelectPetCommand extends Command= 0) { let count = elapsedTime - new GameEnv().playerActTime * 1000 - let newCount = player.extraTime - Math.min(count, 0) + let newCount = player.extraTime - Math.max(count, 0) player.extraTime = Math.max(newCount, 0) }