Skip to content

Commit

Permalink
Warlock invocation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPrimate committed Dec 27, 2024
1 parent 0c676aa commit 50af2f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 6.0.56

- A number of small transfers of midi-qol spell effects.
- A fix for some characters failing to import, most noteable some Warlock invocations would hang.

# 6.0.55

- BREAKING CHANGE: Feature parsing has been reworked to improve automated action detection, and to ease the addition of new classes. This may lead to some oddities with class and species features, I've tested a wide variety but there are like a bazillion options.
Expand Down
1 change: 1 addition & 0 deletions src/parser/features/CharacterFeatureFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ export default class CharacterFeatureFactory {
.reduce((prev, cur) => {
const klass = DDBDataUtils.findClassByFeatureId(this.ddbData, cur.componentId);
const feature = klass.classFeatures.find((f) => f.definition.id === cur.componentId);
if (!feature) return prev;
if (feature.definition.requiredLevel > klass.level) return prev;
return prev.definition.requiredLevel > feature.definition.requiredLevel ? prev : feature;
}, { componentId: null, definition: { requiredLevel: 0 } });
Expand Down

0 comments on commit 50af2f3

Please sign in to comment.