Skip to content

Commit

Permalink
优化风云变幻AI
Browse files Browse the repository at this point in the history
  • Loading branch information
CuteReimu authored Dec 9, 2024
1 parent 5de35df commit c3276bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/card/FengYunBianHuan.kt
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,10 @@ class FengYunBianHuan : Card {
var curScore = alivePlayers.size
for (p in player.game!!.sortedFrom(alivePlayers, player.location)) {
if (p.identity == player.identity) score += curScore
else if (p.identity != Black) score -= curScore
else score -= curScore
curScore--
}
score > 0 || return false
score >= 0 || return false
}
GameExecutor.post(player.game!!, {
convertCardSkill?.onConvert(player)
Expand Down

0 comments on commit c3276bd

Please sign in to comment.