Merge branch 'fix-active-effect-application' into 'main'
fix: fix issue where active effects would be applied multiple times See merge request dungeonslayers/ds4!225
This commit is contained in:
commit
4c17736861
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