blackjack: fix balance check with side bets

This commit is contained in:
moneromooo 2015-01-21 19:44:54 +00:00
parent b040600947
commit c48428b0ab

View file

@ -572,7 +572,7 @@ def Blackjack(link,cmd):
log_info("Dice: %s's bet refused: %s" % (identity, reason))
link.send("%s: %s" % (link.user.nick, reason))
return
enough, reason = IsPlayerBalanceAtLeast(link,units)
enough, reason = IsPlayerBalanceAtLeast(link,total_units_wagered)
if not enough:
link.send("%s: %s" % (link.user.nick, reason))
return