Fix staff attack test path tile coordinate fields.
@@ -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}`