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-08-20 15:57:29 +0200
commit007d8a85c892f2dbdf51404ff3794d0b3313ab36 (patch)
tree11c0f1d7514fc79bcefea918d447fb6bda0c12e6 /go/game/unit_test.go
parent0aa0446e3f3371d2401a167e26206ae5cef209b5 (diff)
downloadmuhqs-game-007d8a85c892f2dbdf51404ff3794d0b3313ab36.tar.gz
muhqs-game-007d8a85c892f2dbdf51404ff3794d0b3313ab36.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)