Skip to content

Commit

Permalink
fix invalid reference in sync code
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunkLightTuna committed Feb 21, 2024
1 parent 9722648 commit c94b74c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sync.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export function enrich_actor(actor) {
actor.system.details.race.name :
''

clone_pc.attributes.spellcaster = Boolean(Object.values(clone_pc.spells).map(s => s.max ?? 0).sum())
clone_pc.attributes.spellcaster = Boolean(Object.values(actor.system?.spells).map(s => s?.max ?? 0).sum())


return {
Expand Down

0 comments on commit c94b74c

Please sign in to comment.