mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
Temp ActionField attack type missing
This commit is contained in:
parent
24114fbdf6
commit
b9eac55e59
1 changed files with 1 additions and 0 deletions
|
|
@ -102,6 +102,7 @@ export class ActionField extends foundry.data.fields.ObjectField {
|
||||||
|
|
||||||
/** @override */
|
/** @override */
|
||||||
initialize(value, model, options = {}) {
|
initialize(value, model, options = {}) {
|
||||||
|
if(value && !value.type) value.type = 'attack';
|
||||||
const cls = this.getModel(value);
|
const cls = this.getModel(value);
|
||||||
if (cls) return new cls(value, { parent: model, ...options });
|
if (cls) return new cls(value, { parent: model, ...options });
|
||||||
return foundry.utils.deepClone(value);
|
return foundry.utils.deepClone(value);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue