Fixed so you can select a newly gained experience to increase

This commit is contained in:
WBHarry 2025-12-23 00:27:12 +01:00
parent 51eadc499f
commit 15ebbacfbc
4 changed files with 20 additions and 12 deletions

View file

@ -98,10 +98,10 @@ export default class D20Roll extends DHRoll {
this.options.roll.modifiers = this.applyBaseBonus();
this.options.experiences?.forEach(m => {
if (this.options.data.experiences?.[m])
if (this.options.data.system?.experiences?.[m])
this.options.roll.modifiers.push({
label: this.options.data.experiences[m].name,
value: this.options.data.experiences[m].value
label: this.options.data.system.experiences[m].name,
value: this.options.data.system.experiences[m].value
});
});