diff options
| -rw-r--r-- | go/game/unit_test.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/go/game/unit_test.go b/go/game/unit_test.go index 53b585d8..c4a92372 100644 --- a/go/game/unit_test.go +++ b/go/game/unit_test.go @@ -21,13 +21,16 @@ symbols: r := strings.NewReader(mapDef) s.Map, _ = readMap(r) - f := NewUnit(NewCard("nautics/fisher"), s.Map.TileAt(Position{2, 2}), nil) + s.AddNewPlayer("player", NewDeck()) + p := s.Players[0] + + f := NewUnit(NewCard("nautics/fisher"), s.Map.TileAt(Position{2, 2}), p) s.AddPermanent(f) - a := NewUnit(NewCard("base/archer"), s.Map.TileAt(Position{1, 1}), nil) + a := NewUnit(NewCard("base/archer"), s.Map.TileAt(Position{1, 1}), p) s.AddPermanent(a) - sword := newEquipmentFromPath("base/sword", s.Map.TileAt(Position{0, 1}), nil) + sword := newEquipmentFromPath("base/sword", s.Map.TileAt(Position{0, 1}), p) s.AddPermanent(sword) a.move(s, f.Tile()) |
