RedReign / FoundryVTT-BetterRolls5e

A module for modifying certain sheet functions on Foundry VTT Character sheets for D&D 5th Edition.
GNU General Public License v3.0
36 stars 67 forks source link

"Repeat the Roll" button not working #308

Closed dmoisset closed 3 years ago

dmoisset commented 3 years ago

When I click the repeat the roll button on a chat card, I get a red notification saying: Dice roll evaluation failed: Cannot read property 'formula' of undefined.

To reproduce in FoundryVTT 0.8.8

The above has some example values, but I've seen this with every roll for every character that I tried.

Traceback in the console is:

fields.js:82 Uncaught (in promise) TypeError: Cannot read property 'formula' of undefined
    at Function.constructMultiRoll (fields.js:82)
    at Function.constructModelsFromField (fields.js:446)
    at CustomItemRoll._processField (custom-roll.js:964)
    at async CustomItemRoll.roll (custom-roll.js:698)
    at async CustomItemRoll.toMessage (custom-roll.js:812)
    at async CustomItemRoll.repeat (custom-roll.js:890)
    at async BetterRollsChatCard._performAction (chat-message.js:350)
    at async HTMLDivElement.<anonymous> (chat-message.js:328)
CarlosFdez commented 3 years ago

Should be working now, give it a shot.

dmoisset commented 3 years ago

Looks good, thanks!