From 5de35dfc6d7d8462151408d41c35a7af913a3a55 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 7 Dec 2024 10:03:13 +0000 Subject: [PATCH] gradlew ktlintFormat --- src/main/kotlin/card/WeiBi.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/card/WeiBi.kt b/src/main/kotlin/card/WeiBi.kt index 0ef30ed2..1537dbf8 100644 --- a/src/main/kotlin/card/WeiBi.kt +++ b/src/main/kotlin/card/WeiBi.kt @@ -233,8 +233,10 @@ class WeiBi : Card { it.isEnemy(player) && it.cards.any { card -> card.type in availableCardType } }.run { - filter { it!!.cards.any { card -> - card.id in player.game!!.canWeiBiCardIds && card.type in availableCardType } + filter { + it!!.cards.any { card -> + card.id in player.game!!.canWeiBiCardIds && card.type in availableCardType + } }.ifEmpty { filter { it!!.cards.any { card -> card.type in listOf(Jie_Huo, Wu_Dao, Diao_Bao) } }.ifEmpty { this } .run { if (player.identity != Black) filter { it!!.identity != Black }.ifEmpty { this } else this }