Fix references to the Ruler class
This commit is contained in:
@@ -145,11 +145,11 @@ export function getColorForDistanceAndToken(distance, token, ranges = null) {
|
||||
export function getMovedDistanceFromToken(token) {
|
||||
const terrainRulerAvailable = game.modules.get("terrain-ruler")?.active;
|
||||
const history = getMovementHistory(token);
|
||||
const segments = Ruler.dragRulerGetRaysFromWaypoints(history, {x: token.x, y: token.y}).map(
|
||||
ray => {
|
||||
const segments = CONFIG.Canvas.rulerClass
|
||||
.dragRulerGetRaysFromWaypoints(history, {x: token.x, y: token.y})
|
||||
.map(ray => {
|
||||
return {ray};
|
||||
},
|
||||
);
|
||||
});
|
||||
const shape = getTokenShape(token);
|
||||
const distances = measureDistances(segments, token, shape, {
|
||||
enableTerrainRuler: terrainRulerAvailable,
|
||||
|
||||
Reference in New Issue
Block a user