diff options
Diffstat (limited to 'internal/game/casino.go')
| -rw-r--r-- | internal/game/casino.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/game/casino.go b/internal/game/casino.go index 8238b7c..21f9627 100644 --- a/internal/game/casino.go +++ b/internal/game/casino.go @@ -419,6 +419,12 @@ func (g *Game) executeBet(sess *net.Session, args []string, rawInput string) { g.emitCasinoEvents(g.Casino.Action(table.RoomID, table.Config.ID, p.Name, strings.TrimSpace("coins "+strings.Join(args, " ")))) return } + // Baccarat repeats every remembered side bet and the main bet on a bare + // "bet"; games with one wager keep the generic single-rebet path below. + if table.Config.Game == casino.GameBaccarat && len(args) == 0 { + g.emitCasinoEvents(g.Casino.RebetAll(table.RoomID, table.Config.ID, p.Name, casinoWallet{g: g, p: p})) + return + } // Table bet syntax: bet | bet <amount> [on] <target> | bet min|max [on] <target>. // BEFORE an "on" keyword, a token that parses as an amount (or min/max) // sets the wager and any other token is the bet target; AFTER "on", the |
