mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-15 13:11:08 +01:00
Fixed so it uses the currently viewed scene instead of the active one
This commit is contained in:
parent
84ef1063d8
commit
14505f4366
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ export default class DHTokenHUD extends foundry.applications.hud.TokenHUD {
|
||||||
setTimeout(() => token.document.delete(), animationDuration);
|
setTimeout(() => token.document.delete(), animationDuration);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const activeScene = game.scenes.find(x => x.active);
|
const activeScene = game.scenes.find(x => x.id === game.user.viewedScene);
|
||||||
const partyTokenData = [];
|
const partyTokenData = [];
|
||||||
for (let member of this.actor.system.partyMembers) {
|
for (let member of this.actor.system.partyMembers) {
|
||||||
const data = await member.getTokenDocument();
|
const data = await member.getTokenDocument();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue