Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initiative tracker isn't able to pull stats from creatures defined using 'extends' #100

Closed
Jnosh opened this issue Feb 13, 2023 · 1 comment · Fixed by #138
Closed

Initiative tracker isn't able to pull stats from creatures defined using 'extends' #100

Jnosh opened this issue Feb 13, 2023 · 1 comment · Fixed by #138

Comments

@Jnosh
Copy link
Contributor

Jnosh commented Feb 13, 2023

I was playing around with the extends functionality from the statblock plugin and noticed that initiative tracker only seems to use the data defined in the new statblock, i.e. it doesn't seem to merge in the data from the base creature being extended when used in this plugin.

This is easily noticeable when hovering over a creature in an encounter block, normally it displays the AC and HP but doesn't if the extending statblock doesn't override the ac or hp fields. Similarly, in the initiative tracker no HP or AC are displayed.

No AC, HP available in encounter blocks on hover or in initiative tracker:

```statblock
extends: Goblin Warrior
name: Test Creature
```

initiative tracker

If the AC, HP are explicitly listed in the extending statblock, they are picked up as usual:

```statblock
extends: Goblin Warrior
name: Test Creature
hp: 50
ac: 18
```

statblock hover

initiative tracker

@stale
Copy link

stale bot commented Apr 20, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants