diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-07-19 19:05:37 -0400 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-07-22 12:54:28 -0400 |
| commit | 606333291cefa961aea00725e1500c1b516320d4 (patch) | |
| tree | 8b6f59c2f6eff0a38b7728a803c1760de69fa30b | |
| parent | 02da1611f0fda0cdb140ec1e7f264ba68cd85071 (diff) | |
| download | muhqs-game-606333291cefa961aea00725e1500c1b516320d4.tar.gz muhqs-game-606333291cefa961aea00725e1500c1b516320d4.zip | |
panic if we try to resolve an unknown card type
| -rw-r--r-- | go/game/state.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/go/game/state.go b/go/game/state.go index e16233a5..1c773618 100644 --- a/go/game/state.go +++ b/go/game/state.go @@ -705,7 +705,7 @@ func (s *LocalState) resolvePlay(a *PlayAction) { case CardTypes.Spell: c.Impl.onPlay(a) default: - log.Printf("Resolving unhandled card type: %s\n", c.Type.String()) + log.Panicf("Resolving unhandled card type: %s\n", c.Type.String()) } if c.Type == CardTypes.Spell { |
