diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-07-19 19:05:37 -0400 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:57:26 +0200 |
| commit | a17b7d9f4db676baedd7d580adc9c26cf9f2d541 (patch) | |
| tree | 5458ed77f44422a0cdfda8f3578080b44135da1c /go/game | |
| parent | 97e43cef81da0aa42f2c03ea17f3051e12a1dc37 (diff) | |
| download | muhqs-game-a17b7d9f4db676baedd7d580adc9c26cf9f2d541.tar.gz muhqs-game-a17b7d9f4db676baedd7d580adc9c26cf9f2d541.zip | |
panic if we try to resolve an unknown card type
Diffstat (limited to 'go/game')
| -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 { |
