V11: Token changes have broken Probable Hit/Miss
Closed this issue · 0 comments
draconas1 commented
Target a token and roll and attack:
dice.js:206 Uncaught (in promise) TypeError: undefined. Cannot read properties of undefined (reading 'system')
[Detected 1 package: system:dnd4e]
at performD20RollAndCreateMessage (dice.js:206:64)
at Dialog.callback (dice.js:90:31)
at Dialog.submit (foundry.js:64233:46)
at Dialog._onClickButton (foundry.js:64161:10)
at HTMLButtonElement.dispatch (jquery.min.js:2:43184)
at y.handle (jquery.min.js:2:41168)
Offending line:
let targDefVal = targets[rollExpressionIdx].document._actor.system.defences[options.attackedDef]?.value;