mirror of
https://github.com/wownero/tippero.git
synced 2026-10-17 15:51:33 +02:00
blackjack: fix exception in insurance command error path
This commit is contained in:
@@ -719,7 +719,7 @@ def Insurance(link,cmd):
|
||||
insurance_units = units / 2
|
||||
enough, reason = IsPlayerBalanceAtLeast(link,units + insurance_units)
|
||||
if not enough:
|
||||
link.send("%s: you do not have enough %s in your account to insure with %s" % (link.user.nick,coinspecs.name,idx+1,AmountToString(insurance_units)))
|
||||
link.send("%s: you do not have enough %s in your account to insure with %s" % (link.user.nick,coinspecs.name,AmountToString(insurance_units)))
|
||||
return
|
||||
if IsBlackjack(dealer_hand):
|
||||
Lose(link,True)
|
||||
|
||||
Reference in New Issue
Block a user