mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 23:49:02 +01:00
Corrected variable
This commit is contained in:
parent
113ff2a8c5
commit
105bd4cccb
1 changed files with 3 additions and 3 deletions
|
|
@ -42,9 +42,9 @@ export default class DHFeature extends BaseDataItem {
|
||||||
traitValue =
|
traitValue =
|
||||||
this.actor.system.traits[this.actor.items.get(this.originId).system.spellcastingTrait]?.value ?? 0;
|
this.actor.system.traits[this.actor.items.get(this.originId).system.spellcastingTrait]?.value ?? 0;
|
||||||
} else {
|
} else {
|
||||||
const { value: multiclass, subclas } = this.actor.system.multiclass;
|
const { value: multiclass, subclass } = this.actor.system.multiclass;
|
||||||
const subclass = multiclass?.id === this.originId ? subclass : this.actor.system.class.subclass;
|
const selectedSubclass = multiclass?.id === this.originId ? subclass : this.actor.system.class.subclass;
|
||||||
traitValue = this.actor.system.traits[subclass.system.spellcastingTrait]?.value ?? 0;
|
traitValue = this.actor.system.traits[selectedSubclass.system.spellcastingTrait]?.value ?? 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue