From 836e57347ff67da5854258a408114d316a8a0156 Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Thu, 1 Jul 2021 04:24:51 +0200 Subject: [PATCH] Small cleanup --- src/module/actor/sheets/actor-sheet.ts | 2 +- src/module/item/item-sheet.ts | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/module/actor/sheets/actor-sheet.ts b/src/module/actor/sheets/actor-sheet.ts index 71a00e2..0249f4a 100644 --- a/src/module/actor/sheets/actor-sheet.ts +++ b/src/module/actor/sheets/actor-sheet.ts @@ -125,7 +125,7 @@ export class DS4ActorSheet extends ActorSheet protected async _createActiveEffect(): Promise { const createData = { label: "New Effect", - changes: [], - duration: {}, - transfer: true, + icon: "icons/svg/aura.svg", }; - return ActiveEffect.create(createData, { parent: this.item }); + return ActiveEffect.create({ ...createData }, { parent: this.item }); } }