aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--go/game/player.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/go/game/player.go b/go/game/player.go
index 802cafeb..4abe4d23 100644
--- a/go/game/player.go
+++ b/go/game/player.go
@@ -114,6 +114,10 @@ func (p *Player) ActionPhase() {
}
func (p *Player) BuyPhase() {
+ s := p.gameState
+ if p.Store.Size() == 0 && s.Map.HasStores() && len(p.knownStores) == 0 {
+ return
+ }
a := promptBuy(p.Ctrl)
if _, ok := a.(*PassPriority); ok {
@@ -121,8 +125,8 @@ func (p *Player) BuyPhase() {
}
if a.Targets().HasSelections() {
- p.gameState.DeclareAction(a)
- p.gameState.Stack.Resolve()
+ s.DeclareAction(a)
+ s.Stack.Resolve()
}
}