From bbd6a4e2b2f89188bc5c9f2f4c05f3c7a2e2d13f Mon Sep 17 00:00:00 2001 From: theripper93 Date: Sat, 10 Sep 2022 13:55:25 +0200 Subject: [PATCH] a --- scripts/patches.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/patches.js b/scripts/patches.js index 3203908..dcef662 100644 --- a/scripts/patches.js +++ b/scripts/patches.js @@ -272,8 +272,8 @@ export function registerWrappers() { function isDoorVisible(wrapped, ...args) { const wall = this.wall; const { advancedVision } = getSceneSettings(wall.scene); - const isUI = WallHeight.isLevels && CONFIG.Levels?.UI?.rangeEnabled - const elevation = isUI && !canvas.tokens.controlled[0] ? WallHeight.currentTokenElevation : WallHeight._token?.document?.elevation; + //const isUI = WallHeight.isLevels && CONFIG.Levels?.UI?.rangeEnabled + const elevation = WallHeight.currentTokenElevation//isUI && !canvas.tokens.controlled[0] ? WallHeight.currentTokenElevation : WallHeight._token?.document?.elevation; if (elevation == null || !advancedVision) return wrapped(...args); const { top, bottom } = getWallBounds(wall); const inRange = elevation >= bottom && elevation <= top;