From 15ab7e3f955b4c51e0e7877929b5a4e35eff8058 Mon Sep 17 00:00:00 2001 From: Wrycu Date: Thu, 13 Jun 2024 13:02:21 -0700 Subject: [PATCH] fix(status): status icons work again * use new ActiveEffectCounter instead of EffectCounter #200 --- release-notes.md | 4 ++++ scripts/talent_checker.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/release-notes.md b/release-notes.md index eff3282..44e3908 100644 --- a/release-notes.md +++ b/release-notes.md @@ -1,3 +1,7 @@ +`2.1.1` - ? + +- FIX: Status Icons now work again ([#200](https://github.com/wrycu/StarWarsFFG-Enhancements/issues/200)) + `2.1.0` - 2024-05-26 - COMPATABILITY: Module updated to work with FoundryVTT v12 diff --git a/scripts/talent_checker.js b/scripts/talent_checker.js index 7128eb6..42836bf 100644 --- a/scripts/talent_checker.js +++ b/scripts/talent_checker.js @@ -188,7 +188,7 @@ export async function update_status(token, ranks, icon_path) { } else { log(module_name, "Adding status rank " + ranks + " to token"); // no need to search for the effect ourselves, as this is done in the underlying libraries - let new_counter = new EffectCounter(ranks, icon_path, token); + let new_counter = new ActiveEffectCounter(ranks, icon_path, token.document); // render it if (active) { await new_counter.update();