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) { // 倒计时没结束,需要按照倒计时已经结束的时间点计算开始收卡的时间