mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
Factor player balance check into IsBetValid and make min/max bets optional
This commit is contained in:
parent
6d1136b459
commit
cf122d032b
3 changed files with 7 additions and 20 deletions
|
@ -575,10 +575,6 @@ 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,total_units_wagered)
|
||||
if not enough:
|
||||
link.send("%s: %s" % (link.user.nick, reason))
|
||||
return
|
||||
|
||||
try:
|
||||
rolls, seed = GetNewShuffleSeed(link)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue