Skip to content

Commit dbbc93b

Browse files
author
Grégory Soupé
committed
Fixing checks for Characters without Party
1 parent 6138cad commit dbbc93b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/applications/DicePoolBuilder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export default class DicePoolBuilder extends FormApplication
8282
data.skills = actor.itemTypes.skill;
8383

8484
if(actor.type === "character") {
85-
data.maxFortunePoints = actor.system.fortune.value + actor.system.currentParty.system.fortunePool;
85+
data.maxFortunePoints = actor.system.fortune.value + (actor.system.currentParty?.system.fortunePool ?? 0);
8686
data.specialisations = actor.itemTypes.skill
8787
.filter(skill => skill.system.specialisations)
8888
.reduce((specialisations, skill) => {

0 commit comments

Comments
 (0)