Logic improvements

This commit is contained in:
WBHarry 2026-03-28 02:37:58 +01:00
parent 1fe1ec3dcb
commit befe55b900
3 changed files with 32 additions and 28 deletions

View file

@ -20,7 +20,9 @@ export default class DhTokenPlaceable extends foundry.canvas.placeables.Token {
.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.SpotlightTracker)
.spotlightedTokens.has(this.document.uuid);
const markerActive = markersEnabled && spotlighted;
const turnIsSet = game.combat?.turn !== null;
const isTurn = game.combat?.combatant?.tokenId === this.id;
const markerActive = markersEnabled && turnIsSet ? isTurn : spotlighted;
// Activate a Turn Marker
if (markerActive) {