Move this here, otherwise dealer can win with 5 cards even if bust
parent
d4eff0d774
commit
12b6bb7358
|
@ -108,14 +108,14 @@
|
||||||
CheckGame()
|
CheckGame()
|
||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
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
|
If dealer.total = 21 And dealer.hand.Count = 2 Then
|
||||||
dealer.winType = WinCondition.Blackjack
|
dealer.winType = WinCondition.Blackjack
|
||||||
dealer.ingame = False
|
dealer.ingame = False
|
||||||
ElseIf dealer.total > 21 Then
|
ElseIf dealer.total > 21 Then
|
||||||
dealer.winType = WinCondition.Bust
|
dealer.winType = WinCondition.Bust
|
||||||
player.ingame = False
|
player.ingame = False
|
||||||
ElseIf dealer.total < dealer.limit Then
|
ElseIf dealer.total < dealer.limit And dealer.hand.Count < 5 Then
|
||||||
DealCard(dealer)
|
DealCard(dealer)
|
||||||
DealerTurn()
|
DealerTurn()
|
||||||
Else
|
Else
|
||||||
|
|
Loading…
Reference in New Issue