From 4282933dcf1eeeb5dc46ff4bccb179bf4aaaa9f0 Mon Sep 17 00:00:00 2001 From: WBHarry Date: Wed, 11 Mar 2026 18:08:49 +0100 Subject: [PATCH] Fixed so that TransformActions don't make a new actor when transforming into another world actor --- module/data/fields/action/transformField.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/data/fields/action/transformField.mjs b/module/data/fields/action/transformField.mjs index f6d692af..07b32166 100644 --- a/module/data/fields/action/transformField.mjs +++ b/module/data/fields/action/transformField.mjs @@ -89,8 +89,10 @@ export default class DHSummonField extends fields.SchemaField { /* Check for any available instances of the actor present in the world, or create a world actor based on compendium */ static async getWorldActor(baseActor) { + if (!baseActor.inCompendium) return baseActor; + const dataType = game.system.api.data.actors[`Dh${baseActor.type.capitalize()}`]; - if (baseActor.inCompendium && dataType && baseActor.img === dataType.DEFAULT_ICON) { + if (dataType && baseActor.img === dataType.DEFAULT_ICON) { const worldActorCopy = game.actors.find(x => x.name === baseActor.name); if (worldActorCopy) return worldActorCopy; }