Remove support for TerrainLayer (Enhanced Terrain Layer stays supported)

This commit is contained in:
Manuel Vögele
2021-11-21 16:51:36 +01:00
parent b275e777db
commit a3be4ceb03
4 changed files with 6 additions and 9 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 && (!game.modules.get("TerrainLayer")?.active || canvas.grid.type !== CONST.GRID_TYPES.GRIDLESS);
const terrainRulerAvailable = game.modules.get("terrain-ruler")?.active;
const dragRulerFlags = combatant.data.flags.dragRuler;
const waypoints = dragRulerFlags.passedWaypoints;
for (const ray of rays) {