mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-22 02:19: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 systemData = {
|
||||
rangeDependence: event.target.checked
|
||||
? {
|
||||
? _replace({
|
||||
type: rangeFields.type.initial,
|
||||
target: rangeFields.target.initial,
|
||||
range: rangeFields.range.initial
|
||||
}
|
||||
})
|
||||
: null
|
||||
};
|
||||
return this.submit({ updateData: { system: systemData } });
|
||||
|
|
|
|||
|
|
@ -141,7 +141,9 @@ export default class BaseEffect extends foundry.data.ActiveEffectTypeDataModel {
|
|||
description: '',
|
||||
transfer: options.transfer,
|
||||
statuses: [],
|
||||
changes: []
|
||||
system: {
|
||||
changes: []
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue