Skip to content

Commit

Permalink
DND5e NPC tools fix
Browse files Browse the repository at this point in the history
Fix #25
  • Loading branch information
mclemente committed Jan 18, 2022
1 parent 638bdce commit 3f551c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/SystemProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ export class dnd5eProvider extends SystemProvider {
skills: this.getSkills(data),
inspiration: data.attributes.inspiration,
languages: data.traits.languages ? data.traits.languages.value.map((code) => CONFIG.DND5E.languages[code]) : [],
tools: this.getTools(data.traits.toolProf) || {},
tools: data.traits.toolProf ? this.getTools(data.traits?.toolProf) : {},
alignment: data.details.alignment,

currency: data.currency,
Expand Down

0 comments on commit 3f551c9

Please sign in to comment.