From fa6d455d7749db459d168fba6aad4213956b0477 Mon Sep 17 00:00:00 2001 From: kandashi Date: Tue, 15 Jun 2021 13:27:50 +0100 Subject: [PATCH 1/2] Update nextUp.js --- src/nextUp.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/nextUp.js b/src/nextUp.js index 398e84f..e3e550b 100644 --- a/src/nextUp.js +++ b/src/nextUp.js @@ -209,6 +209,10 @@ Hooks.once('ready', () => { NextUP.clearShadows() }) + Hooks.on("deleteCombatant", (combatant) => { + NextUP.clearMarker(combatant.token.id) + }) + Hooks.on("updateCombat", NextUP.handleCombatUpdate) Hooks.on("updateToken", (_scene, token, update) => { From 2e0a34de5c3ed289a10ccba831b02f4b7f7bb0a4 Mon Sep 17 00:00:00 2001 From: kandashi Date: Tue, 15 Jun 2021 13:36:00 +0100 Subject: [PATCH 2/2] Update nextUp.js --- src/nextUp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nextUp.js b/src/nextUp.js index e3e550b..a3a4d05 100644 --- a/src/nextUp.js +++ b/src/nextUp.js @@ -468,7 +468,7 @@ class NextUP { if (token.data.hidden && !game.user.isGM) return; let ratio = token.actor.getFlag("Next-Up", "startMarkerRatio") || game.settings.get("Next-Up", "startMarkerRatio") let NUStartImage = await game.settings.get("Next-Up", "startMarkerImage") - let startImage = token.actor.getFlag("Next-Up", "startMarkerImage") || NUStartImage.substring(7) + let startImage = token.actor.getFlag("Next-Up", "startMarkerImage") || NUStartImage let startMarkerTexture = await loadTexture(startImage) const textureSize = grid.size * token.data.height * ratio const offset = (textureSize - (grid.size * token.data.height)) / 2