You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I searched for existing Bug Reports and found no similar reports.
Expected Behavior
Creature A extends an Acolyte but changes the stats. Creature B then extends creature A. The expected behavior is that creature B will have the same stats as creature A.
Instead of inheriting the stats specified in the creature A statblock, it ends up using the stats from the original Acolyte stat block.
Reproduction
Launch Obsidian Sandbox via the 'Open Sandbox Vault' command.
Install the Fantasy Statblocks plugin and enable it.
Create a new note.
Paste the following into the new note
---
statblock: inline
name: Creature A
---
```statblock
name: Creature A
extends: Acolyte
stats:
- 8
- 12
- 12
- 10
- 10
- 16
```
```statblock
name: Creature B
extends:
- Creature A
```
Run the Fantasy Statblocks: Parse Frontmatter for Creatures command
Refresh Creature B statblock (move the text cursor into the statblock and out again.)
Which Operating Systems are you using?
Android
iPhone/iPad
Linux
macOS
Windows
Obsidian Version Check
1.5.12 and 1.5.3
Plugin Version
4.2.4
Confirmation
I have disabled all other plugins and the issue still persists.
Possible solution
Is the recursive function used by the extends feature calling itself after applying stats from the current depth? If so maybe it should be calling itself at the start of the function to start from the deepest level and overwrite stats as it returns.
The text was updated successfully, but these errors were encountered:
MattGRMP
changed the title
Extends feature - extending an extended creature inherits the original creatures stats instead of the modified ones.
🐞 Extends feature - extending an extended creature inherits the original creatures stats instead of the modified ones.
Apr 29, 2024
Check for existing bug reports before submitting.
Expected Behavior
Creature A extends an Acolyte but changes the stats. Creature B then extends creature A. The expected behavior is that creature B will have the same stats as creature A.
Current behaviour
Instead of inheriting the stats specified in the creature A statblock, it ends up using the stats from the original Acolyte stat block.
Reproduction
Which Operating Systems are you using?
Obsidian Version Check
1.5.12 and 1.5.3
Plugin Version
4.2.4
Confirmation
Possible solution
Is the recursive function used by the extends feature calling itself after applying stats from the current depth? If so maybe it should be calling itself at the start of the function to start from the deepest level and overwrite stats as it returns.
The text was updated successfully, but these errors were encountered: