mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-05 20:34:15 +02:00
Fixed character sheet error:ing out if opened when the character doesn't have a spellcastModifierTrait
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
This commit is contained in:
parent
0128106de6
commit
94852cec21
1 changed files with 1 additions and 1 deletions
|
|
@ -211,7 +211,7 @@ export default class CharacterSheet extends DHBaseActorSheet {
|
||||||
...this.document.system.traits[key],
|
...this.document.system.traits[key],
|
||||||
label: _loc(CONFIG.DH.ACTOR.abilities[key].label),
|
label: _loc(CONFIG.DH.ACTOR.abilities[key].label),
|
||||||
verbs: CONFIG.DH.ACTOR.abilities[key].verbs.map(x => game.i18n.localize(x)),
|
verbs: CONFIG.DH.ACTOR.abilities[key].verbs.map(x => game.i18n.localize(x)),
|
||||||
isSpellcasting: this.document.system.spellcastModifierTrait.key === key
|
isSpellcasting: this.document.system.spellcastModifierTrait?.key === key
|
||||||
};
|
};
|
||||||
|
|
||||||
return acc;
|
return acc;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue