Skip to content

Commit

Permalink
fix spellcaster check
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunkLightTuna committed Mar 14, 2024
1 parent c94b74c commit b6c3883
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(actor.system?.spells).map(s => s?.max ?? 0).sum())
clone_pc.attributes.spellcaster = Object.values(actor.system?.spells || {}).some(s => s?.max > 0)


return {
Expand Down

0 comments on commit b6c3883

Please sign in to comment.