diff --git a/macros/spells/iceKnife.js b/macros/spells/iceKnife.js index c44e90e75..47badcdf6 100644 --- a/macros/spells/iceKnife.js +++ b/macros/spells/iceKnife.js @@ -22,8 +22,8 @@ if (lastArg.targets.length > 0) { const target = canvas.tokens.get(lastArg.targets[0].id); const aoeTargets = await canvas.tokens.placeables.filter((placeable) => canvas.grid.measureDistance(target, placeable) <= 9.5 && - !canvas.walls.checkCollision(new Ray(target.center, placeable.center) - )).map((placeable) => placeable.document.uuid); + !canvas.walls.checkCollision(new Ray(target.center, placeable.center), {mode: "any"}) + ).map((placeable) => placeable.document.uuid); const options = { showFullCard: false, diff --git a/macros/spells/witchBolt.js b/macros/spells/witchBolt.js index 688c40013..942f273da 100644 --- a/macros/spells/witchBolt.js +++ b/macros/spells/witchBolt.js @@ -11,7 +11,7 @@ async function checkTargetInRange({ sourceUuid, targetUuid, distance }) { const targetsInRange = MidiQOL.findNearby(null, sourceToken, distance, null); const isInRange = targetsInRange.reduce((result, possible) => { const collisionRay = new Ray(sourceToken, possible); - const collision = canvas.walls.checkCollision(collisionRay); + const collision = canvas.walls.checkCollision(collisionRay, {mode: "any"}); if (possible.uuid === targetUuid && !collision) result = true; return result; }, false);