Skip to content

Commit

Permalink
don't incorrectly unlock best game achievement for a team
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssaruth committed Mar 10, 2024
1 parent 825f896 commit 20fe2a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/dartzee/screen/game/DartsGamePanel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ abstract class DartsGamePanel<
val playerId = playerState.lastIndividual().playerId
val aa = getBestGameAchievement(gameEntity.gameType) ?: return
val gameParams = aa.gameParams
if (gameParams == gameEntity.gameParams) {
if (gameParams == gameEntity.gameParams && !playerState.hasMultiplePlayers()) {
AchievementEntity.updateAchievement(
aa.achievementType,
playerId,
Expand Down

0 comments on commit 20fe2a6

Please sign in to comment.