Skip to content

Commit

Permalink
fix(status): status icons work again
Browse files Browse the repository at this point in the history
* use new ActiveEffectCounter instead of EffectCounter

#200
  • Loading branch information
wrycu committed Jun 13, 2024
1 parent 418edb9 commit 15ab7e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions release-notes.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/talent_checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 15ab7e3

Please sign in to comment.