Move this here, otherwise dealer can win with 5 cards even if bust

remotes/origin/master
CrystalMoogle 2023-07-16 16:14:04 +01:00
parent d4eff0d774
commit 12b6bb7358
1 changed files with 2 additions and 2 deletions

View File

@ -108,14 +108,14 @@
CheckGame()
Exit Sub
End If
If dealer.ingame And dealer.hand.Count < 5 Then
If dealer.ingame Then
If dealer.total = 21 And dealer.hand.Count = 2 Then
dealer.winType = WinCondition.Blackjack
dealer.ingame = False
ElseIf dealer.total > 21 Then
dealer.winType = WinCondition.Bust
player.ingame = False
ElseIf dealer.total < dealer.limit Then
ElseIf dealer.total < dealer.limit And dealer.hand.Count < 5 Then
DealCard(dealer)
DealerTurn()
Else