From c2ea68ea77073910c72c282e10ad07e6686720d0 Mon Sep 17 00:00:00 2001 From: Carlos Fernandez Date: Sat, 21 Feb 2026 20:34:13 -0500 Subject: [PATCH] Reduce diffs --- module/canvas/placeables/token.mjs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/canvas/placeables/token.mjs b/module/canvas/placeables/token.mjs index 4fc3ed87..9d912b1c 100644 --- a/module/canvas/placeables/token.mjs +++ b/module/canvas/placeables/token.mjs @@ -83,7 +83,7 @@ export default class DhTokenPlaceable extends foundry.canvas.placeables.Token { return Math.floor(distance - originRadius - targetRadius + canvas.grid.distance); } - // Compute what the closest grid space of each token is + // Compute what the closest grid space of each token is, then compute that distance const originEdge = this.#getEdgeBoundary(thisBounds, originPoint, destinationPoint); const targetEdge = this.#getEdgeBoundary(targetBounds, originPoint, destinationPoint); const adjustedOriginPoint = canvas.grid.getTopLeftPoint({ @@ -94,7 +94,6 @@ export default class DhTokenPlaceable extends foundry.canvas.placeables.Token { x: targetEdge.x + Math.sign(destinationPoint.x - targetEdge.x), y: targetEdge.y + Math.sign(destinationPoint.y - targetEdge.y) }); - return canvas.grid.measurePath([ { ...adjustedOriginPoint, elevation: 0 }, { ...adjustDestinationPoint, elevation }