mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-08 13:48:11 +02:00
Fixed so that companion rolls don't error. Fixed title of companion action rolls.
This commit is contained in:
parent
8fec742da3
commit
30053c4787
2 changed files with 3 additions and 2 deletions
|
|
@ -224,7 +224,8 @@ export default class D20RollDialog extends HandlebarsApplicationMixin(Applicatio
|
||||||
this.render();
|
this.render();
|
||||||
}
|
}
|
||||||
|
|
||||||
static async submitRoll() {
|
static async submitRoll(event) {
|
||||||
|
event.preventDefault();
|
||||||
await this.close({ submitted: true });
|
await this.close({ submitted: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -101,7 +101,7 @@ export default class D20Roll extends DHRoll {
|
||||||
this.options.roll.modifiers = this.applyBaseBonus();
|
this.options.roll.modifiers = this.applyBaseBonus();
|
||||||
|
|
||||||
const actorExperiences = this.options.roll.companionRoll
|
const actorExperiences = this.options.roll.companionRoll
|
||||||
? (this.options.data?.companion?.system.experiences ?? {})
|
? (this.options.data?.companion?.system?.experiences ?? {})
|
||||||
: (this.options.data.system?.experiences ?? {});
|
: (this.options.data.system?.experiences ?? {});
|
||||||
this.options.experiences?.forEach(m => {
|
this.options.experiences?.forEach(m => {
|
||||||
if (actorExperiences[m])
|
if (actorExperiences[m])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue