diff options
Diffstat (limited to 'internal/game/game.go')
| -rw-r--r-- | internal/game/game.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/game/game.go b/internal/game/game.go index 32e3c24..521c892 100644 --- a/internal/game/game.go +++ b/internal/game/game.go @@ -647,6 +647,16 @@ func (g *Game) handleGameCommand(sess *net.Session, input string) { } } + // A seated game may own inputs the shared registry does not know: bare + // square/card numbers and retry verbs (settle, set, house, autoset). Route + // them straight to executeCommand, whose per-game interceptors handle them, + // instead of rejecting them as unknown verbs. + if g.casinoOwnedInput(sess, cmd) { + g.executeCommand(sess, cmd, parts[1:], input) + g.writePrompt(sess) + return + } + if len(parts) == 1 { switch cmd { case "equip", "eq", "equipment", "wear", "wield": |
