Temp ActionField attack type missing

This commit is contained in:
Dapoolp 2025-08-13 23:57:27 +02:00
parent 24114fbdf6
commit b9eac55e59

View file

@ -102,6 +102,7 @@ export class ActionField extends foundry.data.fields.ObjectField {
/** @override */
initialize(value, model, options = {}) {
if(value && !value.type) value.type = 'attack';
const cls = this.getModel(value);
if (cls) return new cls(value, { parent: model, ...options });
return foundry.utils.deepClone(value);