Skip to content

Commit

Permalink
修复搅局者AI的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
CuteReimu committed Dec 20, 2024
1 parent 1e275e2 commit b2d92b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/MessageCardValue.kt
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ fun Player.calculateMessageCardValue(
if (secretTask == Disturber && this != inFrontOfWhom) {
val count = inFrontOfWhom.messageCards.countTrueCard()
if (inFrontOfWhom.willDie(colors))
value += (2 - count) * 5
value += ((2 - count) * 5).coerceAtLeast(0)
else if (count < 2 && (Red in colors || Blue in colors))
value += 5
}
Expand Down

0 comments on commit b2d92b9

Please sign in to comment.