Move this here, otherwise dealer can win with 5 cards even if bust
							parent
							
								
									d4eff0d774
								
							
						
					
					
						commit
						12b6bb7358
					
				| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue