Add hindrance dice

This commit is contained in:
LeRatierBretonnien 2023-09-13 21:26:47 +02:00
parent ba98d9c264
commit 47db569efd

View File

@ -870,7 +870,7 @@ export class PegasusUtility {
rollData.roll = myRoll
}
if (rollData.hindranceDices > 0) {
rollData.hindranceRoll = new Roll(rollData.hindranceDices + "d6").roll({ async: false })
rollData.hindranceRoll = new Roll(rollData.hindranceDices + "dh").roll({ async: false })
this.showDiceSoNice(rollData.hindranceRoll, game.settings.get("core", "rollMode"))
for (let res of rollData.hindranceRoll.terms[0].results) {
if (res.result == 6) {