Fixed so it uses the currently viewed scene instead of the active one

This commit is contained in:
WBHarry 2025-11-11 19:05:27 +01:00
parent 84ef1063d8
commit 14505f4366

View file

@ -89,7 +89,7 @@ export default class DHTokenHUD extends foundry.applications.hud.TokenHUD {
setTimeout(() => token.document.delete(), animationDuration);
}
} else {
const activeScene = game.scenes.find(x => x.active);
const activeScene = game.scenes.find(x => x.id === game.user.viewedScene);
const partyTokenData = [];
for (let member of this.actor.system.partyMembers) {
const data = await member.getTokenDocument();