asacolips-projects / pbta

Run games for any PbtA system in Foundry VTT!
https://asacolips.gitbook.io/pbta-system
MIT License
3 stars 7 forks source link

I can't roll a move from a npc #241

Closed brunocalado closed 4 months ago

brunocalado commented 4 months ago

Hi. If you add a formula (2d6) to a npc move and try to roll it you will get an error.

Error

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'forward')
    at RollPbtA.configureDialog (rolls.js:136:50)
    at ItemPbta.roll (item.js:73:27)
    at ActorPbta._onRoll (actor.js:144:9)
    at PbtaActorNpcSheet._onRollable (actor-sheet.js:687:14)
    at HTMLSpanElement.dispatch (jquery.min.js:2:40035)
    at v.handle (jquery.min.js:2:38006)

image