Skip to content

Commit

Permalink
Set actorLink: true when unloading clown car
Browse files Browse the repository at this point in the history
  • Loading branch information
stwlam committed Feb 18, 2025
1 parent e9caef5 commit 1a98f96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/module/scene/token-document/clown-car.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ class PartyClownCar {
if (!placeable) return;

const newTokens = (
await Promise.all(this.party.members.map((m) => m.getTokenDocument({ x: token.x, y: token.y })))
await Promise.all(
this.party.members.map((m) => m.getTokenDocument({ x: token.x, y: token.y, actorLink: true })),
)
).map((t) => ({ ...t.toObject(), x: token.x, y: token.y }));
const createdTokens = await this.scene.createEmbeddedDocuments("Token", newTokens);

Expand Down

0 comments on commit 1a98f96

Please sign in to comment.