Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
theripper93 committed May 30, 2024
1 parent 3a79479 commit 39b31c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"socket": true,
"id": "combatbooster",
"compatibility": {
"minimum": "11",
"verified": "11"
"minimum": "12",
"verified": "12"
}
}
5 changes: 2 additions & 3 deletions scripts/TurnMarker.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ class TurnMarker {
if (canvas.tokens[this.containerName] && !canvas.tokens[this.containerName].container.destroyed) canvas.tokens[this.containerName].Destroy(true);
this.token;
this.container = new PIXI.Container();
this.container.filters = game.settings.get("combatbooster", "markerAbove") ? [] : [canvas.interface.reverseMaskfilter];
if (this.filter) this.container.filters.push(this.filter);
this.markerAbove = game.settings.get("combatbooster", "markerAbove");
this.targetAbove = false;
this.img = this.markerImg;
this.speed = game.settings.get("combatbooster", "markerSpeed") / 10;
Expand Down Expand Up @@ -72,7 +71,7 @@ class TurnMarker {
Move(token) {
this.token = token;
if (!token) return;
token.addChildAt(this.container, 0);
this.markerAbove ? token.addChild(this.container) : token.addChildAt(this.container, 0);
this.Update();
}

Expand Down

0 comments on commit 39b31c4

Please sign in to comment.