From 05ef1d211148e5f486a7438f4c63c42bb5fba0d6 Mon Sep 17 00:00:00 2001 From: zhl Date: Mon, 7 Dec 2020 11:27:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=90=83=E7=89=8C=E6=97=B6,?= =?UTF-8?q?=20=E9=9A=8F=E4=BB=8E=E8=A1=80=E9=87=8F=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E8=AE=BE=E7=BD=AE=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rooms/commands/SelectPetCommand.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rooms/commands/SelectPetCommand.ts b/src/rooms/commands/SelectPetCommand.ts index 1c815ec..07dad64 100644 --- a/src/rooms/commands/SelectPetCommand.ts +++ b/src/rooms/commands/SelectPetCommand.ts @@ -19,7 +19,7 @@ export class SelectPetCommand extends Command { execute({client, cardId, playerId, pos, effCards} = this.payload) { - let sessionId = this.state.currentTurn; + let sessionId = client.sessionId; let player = this.state.players.get(sessionId); let ap = 0; let moreAp = 0;