fix: make ActiveEffects work properly
This commit is contained in:
parent
124824da83
commit
692d311558
11 changed files with 112 additions and 98 deletions
|
@ -51,9 +51,9 @@ export class DS4ActorSheet extends ActorSheet {
|
|||
const enrichedEffectPromises = this.actor.effects.map(async (effect) => {
|
||||
return {
|
||||
...effect.toObject(),
|
||||
sourceName: await effect.getCurrentSourceName(),
|
||||
sourceName: effect.sourceName,
|
||||
factor: effect.factor,
|
||||
isEffectivelyEnabled: !effect.disabled && !effect.isSurpressed,
|
||||
active: effect.active,
|
||||
};
|
||||
});
|
||||
const enrichedEffects = await Promise.all(enrichedEffectPromises);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue