From ea0a8e973b23b7936337a6306da52830b612e4d8 Mon Sep 17 00:00:00 2001 From: lxn <964491948@qq.com> Date: Thu, 22 Aug 2024 10:09:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0=E5=AF=BC=E6=92=AD=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E4=B8=8D=E8=AE=B0=E5=BD=95=E7=AC=A6=E5=8D=A1=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E5=92=8C=E6=94=B6=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/RoomTypeLink.kt | 4 +++- src/main/kotlin/RoomTypeNormal.kt | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/RoomTypeLink.kt b/src/main/kotlin/RoomTypeLink.kt index c5c10a8..42e61c9 100644 --- a/src/main/kotlin/RoomTypeLink.kt +++ b/src/main/kotlin/RoomTypeLink.kt @@ -125,7 +125,9 @@ object RoomTypeLink : RoomType { else -> throw HandlerException("内部错误") } - SpellLog.logSpellOperate(status, room.spells!![idx], token, gameType = SpellLog.GameType.LINK) + if (room.host.isNotEmpty() && token != Store.robotPlayer.token){ + SpellLog.logSpellOperate(status, room.spells!![idx], token, gameType = SpellLog.GameType.LINK) + } return result } diff --git a/src/main/kotlin/RoomTypeNormal.kt b/src/main/kotlin/RoomTypeNormal.kt index c7e8550..bbd7055 100644 --- a/src/main/kotlin/RoomTypeNormal.kt +++ b/src/main/kotlin/RoomTypeNormal.kt @@ -112,6 +112,10 @@ object RoomTypeNormal : RoomType { else -> throw HandlerException("内部错误") } + // 无导播模式不记录 + if (room.host.isEmpty() || token == Store.robotPlayer.token){ + return result + } // 等操作结束后再记录 if (room.startMs > now - room.countDown.toLong() * 1000L) { // 倒计时没结束,需要按照倒计时已经结束的时间点计算开始收卡的时间