From cfbe7892f28b9beacfd97aa020e1da4467faa038 Mon Sep 17 00:00:00 2001 From: Richard Musser Date: Tue, 11 Apr 2023 19:26:45 -0500 Subject: [PATCH] Update blades-roll.js Convert to int to fix 0d rolls --- module/blades-roll.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/blades-roll.js b/module/blades-roll.js index 3e5220c..c298078 100644 --- a/module/blades-roll.js +++ b/module/blades-roll.js @@ -215,7 +215,7 @@ export async function simpleRollPopup() { icon: "", label: `Roll`, callback: async (html) => { - let diceQty = html.find('[name="qty"]')[0].value; + let diceQty = parseInt(html.find('[name="qty"]')[0].value, 10); let note = html.find('[name="note"]')[0].value; await bladesRoll(diceQty,"","","",note); },