mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-23 10:59:54 +02:00
replace() fix to the rangeDependenceToggle
This commit is contained in:
parent
81651058c1
commit
55a48c9ebf
2 changed files with 5 additions and 3 deletions
|
|
@ -232,11 +232,11 @@ export default class DhActiveEffectConfig extends foundry.applications.sheets.Ac
|
||||||
const rangeFields = this.document.system.schema.fields.rangeDependence.fields;
|
const rangeFields = this.document.system.schema.fields.rangeDependence.fields;
|
||||||
const systemData = {
|
const systemData = {
|
||||||
rangeDependence: event.target.checked
|
rangeDependence: event.target.checked
|
||||||
? {
|
? _replace({
|
||||||
type: rangeFields.type.initial,
|
type: rangeFields.type.initial,
|
||||||
target: rangeFields.target.initial,
|
target: rangeFields.target.initial,
|
||||||
range: rangeFields.range.initial
|
range: rangeFields.range.initial
|
||||||
}
|
})
|
||||||
: null
|
: null
|
||||||
};
|
};
|
||||||
return this.submit({ updateData: { system: systemData } });
|
return this.submit({ updateData: { system: systemData } });
|
||||||
|
|
|
||||||
|
|
@ -141,7 +141,9 @@ export default class BaseEffect extends foundry.data.ActiveEffectTypeDataModel {
|
||||||
description: '',
|
description: '',
|
||||||
transfer: options.transfer,
|
transfer: options.transfer,
|
||||||
statuses: [],
|
statuses: [],
|
||||||
changes: []
|
system: {
|
||||||
|
changes: []
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue