Skip to content

Commit

Permalink
[#4453] Fix class journal page showing expertise if created first
Browse files Browse the repository at this point in the history
Closes #4453
  • Loading branch information
arbron committed Sep 27, 2024
1 parent 869e9aa commit e7e0e18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/applications/journal/class-page-sheet.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default class JournalClassPageSheet extends JournalPageSheet {
const advancement = traits.find(a => {
const rep = a.representedTraits();
if ( (rep.size > 1) || (rep.first() !== type) ) return false;
return (a.classRestriction !== "secondary") && (a.level === 1);
return (a.classRestriction !== "secondary") && (a.level === 1) && (a.configuration.mode === "default");
});
if ( !advancement ) return game.i18n.localize("None");
return advancement.hint || Trait.localizedList(advancement.configuration);
Expand Down

0 comments on commit e7e0e18

Please sign in to comment.