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

[#4992] Store roll type (attack, skill, ability, save, damage) in roll options #5008

Open
wants to merge 2 commits into
base: 4.2.x
Choose a base branch
from

Conversation

roth-michael
Copy link
Contributor

Closes #4992
Allows the type of roll to be ascertained solely from the roll object.
Originally put it under options.type but, while that would work fine, that's also where damage rolls store the damage type, so while ??= wouldn't clobber that (and whether it's a "Damage" roll could be checked by looking at whether it's a DamageRoll) it felt cleaner to give it a new property.

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

Successfully merging this pull request may close these issues.

Add a bit of roll context to the D20Roll when building
2 participants