From 94c235bc084934d6e918c7b69c7c24a2c7e23096 Mon Sep 17 00:00:00 2001 From: Dapoulp <74197441+Dapoulp@users.noreply.github.com> Date: Thu, 14 Aug 2025 00:25:03 +0200 Subject: [PATCH] Temp ActionField attack type missing (#923) --- module/data/fields/actionField.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/module/data/fields/actionField.mjs b/module/data/fields/actionField.mjs index dc567da9..a8b01e37 100644 --- a/module/data/fields/actionField.mjs +++ b/module/data/fields/actionField.mjs @@ -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);