Skip to content

Commit

Permalink
在一定程度上缓解鄭文先AI先用调包再发动偷天的问题(resolve #308)
Browse files Browse the repository at this point in the history
  • Loading branch information
CuteReimu committed Dec 6, 2024
1 parent 557664c commit 2aff9f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/skill/TouTian.kt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class TouTian : ActiveSkill {
val newValue = player.calculateMessageCardValue(e.whoseTurn, player, e.messageCard, sender = e.sender)
newValue > oldValue || return false
val result = player.calFightPhase(e)
if (result != null && result.cardType in listOf(Jie_Huo, Wu_Dao) && result.value >= newValue) return false
if (result != null && result.cardType in listOf(Jie_Huo, Wu_Dao) && result.value > newValue + 11) return false
GameExecutor.post(e.whoseFightTurn.game!!, {
skill.executeProtocol(e.whoseFightTurn.game!!, e.whoseFightTurn, skillTouTianTos { })
}, 3, TimeUnit.SECONDS)
Expand Down

0 comments on commit 2aff9f0

Please sign in to comment.