mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-21 15:03:37 +02:00
Fixed spotlight case outside of combat
This commit is contained in:
parent
24d22dde59
commit
740216ada2
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ export default class DhTokenPlaceable extends foundry.canvas.placeables.Token {
|
|||
.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.SpotlightTracker)
|
||||
.spotlightedTokens.has(this.document.uuid);
|
||||
|
||||
const turnIsSet = game.combat?.turn !== null;
|
||||
const turnIsSet = typeof game.combat?.turn === 'number';
|
||||
const isTurn = game.combat?.combatant?.tokenId === this.id;
|
||||
const markerActive = markersEnabled && turnIsSet ? isTurn : spotlighted;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue