From 4db8db0e847552077be9ebd9177ddc573c2b51d4 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 5 Feb 2023 23:14:52 +0100 Subject: add simple spell support --- go/game/state.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'go/game/state.go') diff --git a/go/game/state.go b/go/game/state.go index 744f0b11..87e2133a 100644 --- a/go/game/state.go +++ b/go/game/state.go @@ -381,6 +381,8 @@ func (s *State) resolvePlay(p *Player, c *Card, targets *Targets) { case CardTypes.Artifact: tile := targets.sel[0].(*Tile) s.AddNewArtifact(c, tile.Position, p) + case CardTypes.Spell: + c.Impl.onPlay(s, p, targets) default: log.Printf("Resolving unhandled card type: %s\n", c.Type.String()) } -- cgit v1.2.3