diff options
Diffstat (limited to 'go/game/unit.go')
| -rw-r--r-- | go/game/unit.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/go/game/unit.go b/go/game/unit.go index 51383b77..bc9cad3f 100644 --- a/go/game/unit.go +++ b/go/game/unit.go @@ -99,12 +99,7 @@ func (u *Unit) move(s *State, tile *Tile) { leaveTile(u) } - if tile.Permanent == nil { - enterTile(u, tile) - } else { // crew permanent at tile - AddPermanentToPile(tile.Permanent, u) - u.tile = nil - } + enterTileOrPile(u, tile) } func (u *Unit) MoveRangeTiles(m *Map) []*Tile { @@ -200,6 +195,12 @@ func (u *Unit) AvailSlowActions() (actions []Action) { for _, p := range u.FullActions { actions = append(actions, p) } + + for _, t := range TilesInRange(m, u, 1) { + if t.Permanent != nil && t.Permanent.Card().Type.IsArtifact() { + actions = append(actions, newArtifactSwitchAction(u, t.Permanent)) + } + } } return actions |
