BlueGit

timfa questward

Fix staff attack test path tile coordinate fields.

timfa Tim Falken · pushed by timfa

Authored 2026-09-02 · 2 months ago

Hash
bffb359e2ba7287c0a517beea570d899c0a8ab5e
Parent
b4826421
1 file changed +1 −1
server/tests/combat.test.js +1 −1
@@ -800,7 +800,7 @@ test("staff click-attack arms favorite spell instead of melee approach", () =>
800 800 const tiles = path?.tiles ?? [];
801 801 assert.ok(tiles.length > 0, "should approach into spell range");
802 802 const last = tiles[tiles.length - 1];
803 const standDist = chebyshev(last.tileX, last.tileY, 28, 8);
803 const standDist = chebyshev(last.x, last.y, 28, 8);
804 804 assert.ok(
805 805 standDist > 1,
806 806 `spell approach should stop outside melee adjacency, got dist=${standDist}`
@@ -800,7 +800,7 @@ test("staff click-attack arms favorite spell instead of melee approach", () =>
800 const tiles = path?.tiles ?? [];
800 const tiles = path?.tiles ?? [];
801 assert.ok(tiles.length > 0, "should approach into spell range");
801 assert.ok(tiles.length > 0, "should approach into spell range");
802 const last = tiles[tiles.length - 1];
802 const last = tiles[tiles.length - 1];
803 const standDist = chebyshev(last.tileX, last.tileY, 28, 8);
803 const standDist = chebyshev(last.x, last.y, 28, 8);
804 assert.ok(
804 assert.ok(
805 standDist > 1,
805 standDist > 1,
806 `spell approach should stop outside melee adjacency, got dist=${standDist}`
806 `spell approach should stop outside melee adjacency, got dist=${standDist}`