Skip to content

Commit

Permalink
fix: Fixes incorrect inheritance of certain properties (closes #400)
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed May 1, 2024
1 parent e1eb126 commit e83b300
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/view/statblock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ export default class StatBlockRenderer extends MarkdownRenderChild {
* At this point, the built creature has been fully resolved from all
* extensions and in-memory creature definitions.
*/
built = Object.assign({}, ...extensions, built);
for (const extension of extensions) {
built = Object.assign(built, extension);
}

/**
* Traits logic:
Expand Down

0 comments on commit e83b300

Please sign in to comment.