mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-15 05:01:08 +01:00
Corrected tokenHUD for non-player-tokens
This commit is contained in:
parent
d15feabfc5
commit
239e2c23d5
1 changed files with 3 additions and 1 deletions
|
|
@ -22,7 +22,9 @@ export default class DHTokenHUD extends foundry.applications.hud.TokenHUD {
|
||||||
async _prepareContext(options) {
|
async _prepareContext(options) {
|
||||||
const context = await super._prepareContext(options);
|
const context = await super._prepareContext(options);
|
||||||
|
|
||||||
context.partyOnCanvas = this.actor.system.partyMembers.some(member => member.getActiveTokens().length > 0);
|
context.partyOnCanvas =
|
||||||
|
this.actor.type === 'party' &&
|
||||||
|
this.actor.system.partyMembers.some(member => member.getActiveTokens().length > 0);
|
||||||
context.icons.toggleParty = 'systems/daggerheart/assets/icons/arrow-dunk.png';
|
context.icons.toggleParty = 'systems/daggerheart/assets/icons/arrow-dunk.png';
|
||||||
context.actorType = this.actor.type;
|
context.actorType = this.actor.type;
|
||||||
context.usesEffects = this.actor.type !== 'party';
|
context.usesEffects = this.actor.type !== 'party';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue