diff options
Diffstat (limited to 'go')
| -rw-r--r-- | go/game/cardImplementations.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/go/game/cardImplementations.go b/go/game/cardImplementations.go index f304ee1c..34567962 100644 --- a/go/game/cardImplementations.go +++ b/go/game/cardImplementations.go @@ -424,7 +424,7 @@ type devourThePoorImpl struct{ cardImplementationBase } func (*devourThePoorImpl) onPlay(s *State, _ *Card, kraken *Player, _ *Targets) { for _, u := range s.EnemyUnits(kraken) { - if u.Card().BuyCosts.Costs(s) < 7 { + if !u.Card().IsBuyable() || u.Card().BuyCosts.Costs(s) < 7 { s.destroyPermanent(u) } } @@ -499,7 +499,12 @@ type frostPylonImpl struct { func (*frostPylonImpl) spawnTiles(s *State, kraken *Player) (spawns []*Tile) { for _, u := range s.EnemyUnits(kraken) { - spawns = append(spawns, TilesInRange(s.Map, u, 1)...) + candiates := TilesInRange(s.Map, u, 1) + for _, candidate := range candiates { + if candidate.IsFree() { + spawns = append(spawns, candidate) + } + } } return } |
