Fixed attack

This commit is contained in:
WBHarry 2025-06-28 20:46:44 +02:00
parent 5f6ed71d04
commit 4f5e693c7f
4 changed files with 42 additions and 123 deletions

View file

@ -6,7 +6,9 @@ export default class DhCompanionSheet extends DaggerheartSheet(ActorSheetV2) {
tag: 'form',
classes: ['daggerheart', 'sheet', 'actor', 'dh-style', 'companion'],
position: { width: 700, height: 1000 },
actions: {},
actions: {
attackRoll: this.attackRoll
},
form: {
handler: this.updateForm,
submitOnChange: true,
@ -32,4 +34,8 @@ export default class DhCompanionSheet extends DaggerheartSheet(ActorSheetV2) {
await this.document.update(formData.object);
this.render();
}
static async attackRoll(event) {
this.actor.system.attack.use(event);
}
}