If Terran Ruler is enabled, store the length of the traveled path so changes to difficult terrain aren't reflected in the tokens movement history

This commit is contained in:
Manuel Vögele
2021-04-12 16:11:29 +02:00
parent 5d93c61f0c
commit 9787a41fd1
4 changed files with 34 additions and 8 deletions
+2
View File
@@ -136,6 +136,8 @@ export function measure(destination, {gridSpaces=true, snap=false} = {}) {
const centeredRay = new Ray(centeredOrigin, centeredDest)
ray.isPrevious = Boolean(origin.isPrevious);
centeredRay.isPrevious = ray.isPrevious;
ray.dragRulerVisitedSpaces = origin.dragRulerVisitedSpaces;
centeredRay.dragRulerVisitedSpaces = ray.dragRulerVisitedSpaces;
if (ray.distance < 10) {
if (label) label.visible = false;
continue;