Allow difficult terrain measurements on girdless maps

This commit is contained in:
Manuel Vögele
2021-05-11 18:21:39 +02:00
parent 5f0849f12d
commit 85e167af45
4 changed files with 14 additions and 7 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ function calculateUpdate(combat, token, rays) {
}
// Add the passed waypoints to the combatant
const terrainRulerAvailable = game.modules.get("terrain-ruler")?.active && canvas.grid.type !== CONST.GRID_TYPES.GRIDLESS;
const terrainRulerAvailable = game.modules.get("terrain-ruler")?.active && (!game.modules.get("TerrainLayer")?.active || canvas.grid.type !== CONST.GRID_TYPES.GRIDLESS);
const dragRulerFlags = combatant.flags.dragRuler;
const waypoints = dragRulerFlags.passedWaypoints;
for (const ray of rays) {