aboutsummaryrefslogtreecommitdiff
path: root/go/game/state.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/game/state.go')
-rw-r--r--go/game/state.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/go/game/state.go b/go/game/state.go
index 7a54ddc0..98ac9c31 100644
--- a/go/game/state.go
+++ b/go/game/state.go
@@ -243,6 +243,9 @@ func (s *State) DeclareAction(a Action) {
}
if err == nil {
+ if pa, ok := a.(*PlayAction); ok {
+ pa.Source().(*Player).Hand.RemoveCard(pa.Card)
+ }
s.pushAction(a)
}