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

Issue with Midi-qol damage rolls #22

Closed
ChasarooniZ opened this issue Feb 7, 2022 · 10 comments
Closed

Issue with Midi-qol damage rolls #22

ChasarooniZ opened this issue Feb 7, 2022 · 10 comments
Assignees
Labels
bug Something isn't working

Comments

@ChasarooniZ
Copy link

When using midi-qol, unable to roll damage, as it gives the following error.

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'shiftKey')
[Detected 4 packages: adv-reminder, lib-wrapper, more-hooks-5e, midi-qol]
    at isFastForwarding (modules/adv-reminder/src/module.js:269)
    at isFastForwardingDamage (modules/adv-reminder/src/module.js:286)
    at Item5e.onRollDamage (modules/adv-reminder/src/module.js:244)
    at Wrapper.🎁call_wrapper [as call_wrapper] (modules/lib-wrapper/lib-wrapper.js:1)
    at Item5e.rollDamagePatch (modules/more-hooks-5e/scripts/item/damageRoll.js:8)
    at Wrapper.🎁call_wrapper [as call_wrapper] (modules/lib-wrapper/lib-wrapper.js:1)
    at Item5e.🎁CONFIG.Item.documentClass.prototype.rollDamage#0 (modules/lib-wrapper/lib-wrapper.js:1)
    at Workflow._next (modules/midi-qol/src/module/workflow.js:472)
    at async Workflow.next (modules/midi-qol/src/module/workflow.js:245)
@kaelad02 kaelad02 self-assigned this Feb 7, 2022
@kaelad02 kaelad02 added the bug Something isn't working label Feb 7, 2022
@kaelad02
Copy link
Owner

kaelad02 commented Feb 7, 2022

I can't reproduce the issue. I might just put something in anyways, but what version of Foundry and Midi-QOL are you using?

@ChasarooniZ
Copy link
Author

  • Foundry V. 9.249,
  • Midi QOL v 0.9.08

And it seems to apply to actors that don't even have any flags on them?

@ChasarooniZ
Copy link
Author

Okay It looks like I can roll damage on it's own. But if I have it setup as follows (I think the auto fast forward damage) is causing all issues.
image

@ChasarooniZ
Copy link
Author

I believe it seems to be related to the midi-qol workflow?

But no I have tested it using SRD items built in to foundry rolling them normally.

@kaelad02
Copy link
Owner

kaelad02 commented Feb 8, 2022

For some reason midi's passing a null event. I'm taking a look at its code to confirm and see why.

@kaelad02
Copy link
Owner

kaelad02 commented Feb 8, 2022

It is a regression in midi when you auto-roll damage. If you change midi's settings so it doesn't auto-roll damage it won't happen. I'll file an issue w/ midi but I'll put something in here anyways.

Using version 0.8.85 it does not happen but 0.9.08 it does. For some reason, it's now passing event = null in the roll options to the damage roll where it was missing from roll options before. Passing it as null is causing the problem.

@ChasarooniZ
Copy link
Author

Cool, thank you for the response, hopefully it gets resolved.

@kaelad02
Copy link
Owner

kaelad02 commented Feb 8, 2022

Filed the issue and I'll get a fix for this module now and push that out in the meantime.

https://gitlab.com/tposney/midi-qol/-/issues/686

@kaelad02
Copy link
Owner

kaelad02 commented Feb 8, 2022

version 1.2 is live with this bug fix

@ChasarooniZ
Copy link
Author

ty ty, i see it, hopefully midi qol fixes the compatibility issue

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