Fixed so that tokens with vision range set to Infinity doesn't make summon actions error out

This commit is contained in:
WBHarry 2026-04-02 17:07:52 +02:00
parent 3a4b66f487
commit be8d7f6469
2 changed files with 2 additions and 2 deletions

View file

@ -95,7 +95,7 @@ export default class DhTokenManager {
: this.#actor;
const tokenData = await actor.getTokenDocument();
const result = await canvas.scene.createEmbeddedDocuments('Token', [
{ ...tokenData, x: this.#activePreview.document.x, y: this.#activePreview.document.y }
{ ...tokenData.toObject(), x: this.#activePreview.document.x, y: this.#activePreview.document.y }
]);
this.#activePreview = undefined;