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

Inititative not being rolled correctly #14

Closed
Wigsinator opened this issue Jun 1, 2021 · 1 comment
Closed

Inititative not being rolled correctly #14

Wigsinator opened this issue Jun 1, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Wigsinator
Copy link

When rolling for initiative, an error is produced: Error: A Die term must have a numeric number of faces.

This is caused by setting actorData.attributes.init.mod to the string representation of that modifier.

Additionally, none of the other values are applied because they are being set to value and total, neither of which are included in the basic initiative formula. This can be corrected by replacing lines 101-104 with

actorData.attributes.init.bonus = monsterData.initiative.value;

giffyglyph added a commit that referenced this issue Jun 2, 2021
Actor initiative value was not being correctly set.
Initiative can now be correctly rolled via the combat tracker.
@giffyglyph giffyglyph added the bug Something isn't working label Jun 2, 2021
@giffyglyph giffyglyph self-assigned this Jun 2, 2021
@giffyglyph
Copy link
Owner

Tested and verified in v0.5.4-dev. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants