mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-21 23:13:39 +02:00
Fixed so that tokens with vision range set to Infinity doesn't make summon actions error out
This commit is contained in:
parent
3a4b66f487
commit
be8d7f6469
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue