mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-22 10:29:54 +02:00
Fix adding experiences to a roll
This commit is contained in:
parent
baafa6b989
commit
7de81bfe48
1 changed files with 6 additions and 0 deletions
|
|
@ -107,6 +107,12 @@ export default class D20Roll extends DHRoll {
|
|||
this.options.data.companion;
|
||||
actorExperiences = companion?.system?.experiences ?? {};
|
||||
}
|
||||
for (const m of this.options.experiences?.filter(m => !!actorExperiences[m]) ?? []) {
|
||||
this.options.roll.modifiers.push({
|
||||
label: actorExperiences[m].name,
|
||||
value: actorExperiences[m].value
|
||||
});
|
||||
}
|
||||
|
||||
this.addModifiers();
|
||||
if (this.options.extraFormula) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue