From a504a91ef4ed49ba451de14f04ef02472dfcb189 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 27 Dec 2024 12:41:38 +0100 Subject: improve and fix slow action timing check Do not allow to declare slow play actions in the client. Fix the slow action check in the game state. --- go/client/game.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'go/client') diff --git a/go/client/game.go b/go/client/game.go index 50f0400b..6c2f41e0 100644 --- a/go/client/game.go +++ b/go/client/game.go @@ -502,6 +502,10 @@ func (g *Game) handleSelection(obj interface{}, x, y int) { g.addPermActionChoice(perm, x, y) case ui.HandCard: + if obj.C.IsPermanent() && !g.gameState.Stack().IsEmpty() { + return + } + if obj.C.PlayCosts.IsVariadic() { g.addChoice(ui.NewNumberChoice( g.Width-ui.NUMBER_CHOICE_WIDTH, -- cgit v1.2.3