Rename a function call that was forgotten during the the renaming from Token to Entity (fixes #74)

This commit is contained in:
Manuel Vögele
2021-05-18 22:23:53 +02:00
parent a7811d6894
commit 7cee1e7af0
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ export async function moveEntities(draggedEntity, selectedEntities) {
const rays = this.constructor.dragRulerGetRaysFromWaypoints(this.waypoints, this.destination);
if (!game.user.isGM && draggedEntity instanceof Token) {
const hasCollision = selectedEntities.some(token => {
const offset = calculateTokenOffset(token, draggedEntity);
const offset = calculateEntityOffset(token, draggedEntity);
const offsetRays = rays.filter(ray => !ray.isPrevious).map(ray => applyOffsetToRay(ray, offset))
return offsetRays.some(r => canvas.walls.checkCollision(r));
})