mirror of
https://github.com/Anime-Game-Servers/AGSLunarCore.git
synced 2024-11-27 06:10:25 +00:00
Prevent challenge round count from going below 1 when winning
This commit is contained in:
parent
2ddd89829d
commit
59c40437a4
@ -115,7 +115,7 @@ public class ChallengeInstance {
|
||||
}
|
||||
|
||||
// Calculate rounds left
|
||||
this.roundsLeft = Math.min(Math.max(this.roundsLeft - stats.getRoundCnt(), 0), this.roundsLeft);
|
||||
this.roundsLeft = Math.min(Math.max(this.roundsLeft - stats.getRoundCnt(), 1), this.roundsLeft);
|
||||
} else {
|
||||
// Fail challenge
|
||||
this.setStatus(ChallengeStatus.CHALLENGE_FAILED);
|
||||
|
Loading…
Reference in New Issue
Block a user