mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
. (#675)
This commit is contained in:
parent
48e386d8ab
commit
f5febe74fe
2 changed files with 12 additions and 1 deletions
|
|
@ -362,6 +362,7 @@ export async function createEmbeddedItemWithEffects(actor, baseData, update) {
|
|||
const [doc] = await actor.createEmbeddedDocuments('Item', [
|
||||
{
|
||||
...(update ?? data),
|
||||
...baseData,
|
||||
id: data.id,
|
||||
uuid: data.uuid,
|
||||
effects: data.effects?.map(effect => effect.toObject())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue