fix: fix issue where active effects would be applied multiple times
This commit is contained in:
parent
53216d30cc
commit
db6ee373ff
1 changed files with 3 additions and 2 deletions
|
@ -152,8 +152,9 @@ export class DS4ActiveEffect extends ActiveEffect {
|
||||||
|
|
||||||
// Apply all changes
|
// Apply all changes
|
||||||
for (const changeWithEffect of changesWithEffect) {
|
for (const changeWithEffect of changesWithEffect) {
|
||||||
const result = changeWithEffect.effect.apply(document, changeWithEffect.change);
|
if (!changeWithEffect.change.key) continue;
|
||||||
if (result !== null) overrides[changeWithEffect.change.key] = result;
|
const changes = changeWithEffect.effect.apply(document, changeWithEffect.change);
|
||||||
|
Object.assign(overrides, changes);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Expand the set of final overrides
|
// Expand the set of final overrides
|
||||||
|
|
Loading…
Reference in a new issue