Bug fixing

This commit is contained in:
Christoph Hagen
2021-12-07 09:09:51 +01:00
parent fa3aaadef8
commit 9d9c8ad71f
3 changed files with 131 additions and 55 deletions

View File

@ -25,7 +25,7 @@ struct TableInfo: Codable {
self.playerAcross = table.playerInfo(acrossOf: playerIndex, masked: true)
self.playerRight = table.playerInfo(rightOf: playerIndex, masked: true)
if table.phase == .selectGame, player.selectsGame {
if table.phase == .bidding || table.phase == .selectGame {
let games = table.minimumPlayableGame?.availableGames ?? GameType.allCases
self.playableGames = games.filter(player.canPlay).map { $0.id }
} else {