Skip to content

Commit

Permalink
fix: Fixes extends behavior not preferring in-note parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed May 7, 2024
1 parent 1d625f7 commit 72cc62e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/view/statblock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,14 @@ export default class StatBlockRenderer extends MarkdownRenderChild {
}

const extensions = Bestiary.getExtensions(built, new Set());

/**
* At this point, the built creature has been fully resolved from all
* extensions and in-memory creature definitions.
*/
for (const extension of extensions) {
for (const extension of extensions.reverse()) {
built = Object.assign(built, extension);
}
built = Object.assign(built, this.monster ?? {}, this.params ?? {});

/**
* Traits logic:
Expand Down

0 comments on commit 72cc62e

Please sign in to comment.