aboutsummaryrefslogtreecommitdiff
path: root/go/game/unit_test.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-07-22 19:25:43 -0400
committerFlorian Fischer <florian.fischer@muhq.space>2025-07-24 12:22:10 -0400
commited473052c558fbda6bb03d9083b425cb2e7a808f (patch)
tree782416f62dd3dd43cee1a57b649695bfdee5ff64 /go/game/unit_test.go
parentfb0d29cf64efa90a7ac509b1e371a1905bb39407 (diff)
downloadmuhqs-game-ed473052c558fbda6bb03d9083b425cb2e7a808f.tar.gz
muhqs-game-ed473052c558fbda6bb03d9083b425cb2e7a808f.zip
do not pass the map through the Attackable* function family
Diffstat (limited to 'go/game/unit_test.go')
-rw-r--r--go/game/unit_test.go6
1 files changed, 3 insertions, 3 deletions
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)