From ed473052c558fbda6bb03d9083b425cb2e7a808f Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 22 Jul 2025 19:25:43 -0400 Subject: do not pass the map through the Attackable* function family --- go/game/unit_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'go/game/unit_test.go') diff --git a/go/game/unit_test.go b/go/game/unit_test.go index e707c560..94fd3893 100644 --- a/go/game/unit_test.go +++ b/go/game/unit_test.go @@ -61,7 +61,7 @@ symbols: t.Fatalf("Piled archer is attackable") } - if len(a.AttackableTiles(s.Map())) != 0 { + if len(a.AttackableTiles()) != 0 { t.Fatalf("Piled archer has attackable tiles") } @@ -117,13 +117,13 @@ symbols: } } - aTiles := a.AttackableTiles(m) + aTiles := a.AttackableTiles() is := len(aTiles) if is != 6 { t.Fatal("6 attackable tiles expected not:", is) } - aPerms := a.AttackableEnemyPermanents(m) + aPerms := a.AttackableEnemyPermanents() is = len(aPerms) if is != 6 { t.Fatal("6 attackable permanents expected not:", is) -- cgit v1.2.3