Open 749 opened 3 years ago
new changes.. line 813
if(typeof canvas.terrain?.costGrid[rRow]?.[rCol] != 'undefined' && !ignoreTerrain){
let point = canvas.terrain.cost[rRow][rCol];
dist = (point.multiple * dist)
}
to
if(typeof canvas.terrain?.cost[rRow]?.[rCol] != 'undefined' && !ignoreTerrain){
let point = canvas.terrain.cost[rRow][rCol];
dist = (point.multiple * dist)
}
same with line 897
if(typeof canvas.terrain?.costGrid[grid.row]?.[grid.col] != 'undefined' && !ignoreTerrain){
let point = canvas.terrain.costGrid[grid.row][grid.col];
dist = (point.multiple * dist)
}
to
if(typeof canvas.terrain?.cost[grid.row]?.[grid.col] != 'undefined' && !ignoreTerrain){
let point = canvas.terrain.cost[grid.row][grid.col];
dist = (point.multiple * dist)
}
Another one I caught when players drag their tokens. Change Line 125 to
let ignoreTerrain = (typeof this.getToken?.ignoreTerrain) != null ? this.getToken.ignoreTerrain:false;
Commits: fix(foundry-0.8.X): fixed deprecation warnings and updated setting defaults for dnd5e