From 2ffbe2ee8a1b925c6d230551bf5068ccb0f50674 Mon Sep 17 00:00:00 2001 From: zhl Date: Thu, 24 Dec 2020 16:38:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=BA=9B=E6=B8=B8?= =?UTF-8?q?=E6=88=8F=E7=94=9F=E5=91=BD=E5=91=A8=E6=9C=9F=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E7=9A=84=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rooms/commands/BeginGameCommand.ts | 1 + src/rooms/commands/GameResultCommand.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/rooms/commands/BeginGameCommand.ts b/src/rooms/commands/BeginGameCommand.ts index e049efb..c93acc8 100644 --- a/src/rooms/commands/BeginGameCommand.ts +++ b/src/rooms/commands/BeginGameCommand.ts @@ -13,6 +13,7 @@ import {NextTurnCommand} from "./NextTurnCommand"; export class BeginGameCommand extends Command { async execute() { + this.room.battleMan.onGameStart(); this.state.maxCardId = 0; let card0 = gameUtil.initCardQue(); let card1 = gameUtil.initCardQue(); diff --git a/src/rooms/commands/GameResultCommand.ts b/src/rooms/commands/GameResultCommand.ts index 765bca1..4d9c31f 100644 --- a/src/rooms/commands/GameResultCommand.ts +++ b/src/rooms/commands/GameResultCommand.ts @@ -122,6 +122,7 @@ export class GameResultCommand extends Command { this.resetPet(pet); } } + this.room.battleMan.onGameEnd(); } resetPet(pet: Pet) { pet.state = 0;