This commit is contained in:
WBHarry 2025-07-04 01:22:18 +02:00
parent 72dfc54705
commit 266a2806ab
13 changed files with 102 additions and 52 deletions

View file

@ -103,7 +103,6 @@ export default class DHAdversarySettings extends HandlebarsApplicationMixin(Appl
context.systemFields = this.actor.system.schema.fields;
context.systemFields.attack.fields = this.actor.system.attack.schema.fields;
context.isNPC = true;
console.log(context);
return context;
}

View file

@ -44,7 +44,7 @@ export default class BeastformSheet extends DHBaseItemSheet {
static editFeature(event) {
const target = event.target.closest('[data-action="editFeature"]');
const feature = this.document.system.features[target.dataset.index];
feature.sheet.render(true);
feature.sheet.render({ force: true });
}
static async removeFeature(_, target) {
@ -52,7 +52,6 @@ export default class BeastformSheet extends DHBaseItemSheet {
await this.document.update({
'system.features': current.filter((_, index) => index !== Number(target.dataset.index))
});
this.render();
}
async _onDrop(event) {