From 45df9bf319d38db916ca983b8c92bb912f5ce9ee Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 8 Feb 2023 17:50:10 +0100 Subject: intermediate commit --- go/game/stack.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'go/game/stack.go') diff --git a/go/game/stack.go b/go/game/stack.go index cf0622ce..78a5ff41 100644 --- a/go/game/stack.go +++ b/go/game/stack.go @@ -33,9 +33,14 @@ func (s *Stack) pop() { err := s.gameState.ValidateAction(a) if err == nil { a.Resolve(s.gameState) + // Some action may be reused like full actions of permanents. + // Reset their target selection to allow possible reuse. + if t := a.Targets(); t != nil { + t.ClearSelections() + } } log.Println("Resolved", a, err) - s.gameState.broadcastNotification(NewResolvedActionNotification(a, err)) + s.gameState.broadcastNotification(newResolvedActionNotification(a, err)) } func (s *Stack) Resolve() { -- cgit v1.2.3