Update blades-roll.js

Convert to int to fix 0d rolls
This commit is contained in:
Richard Musser 2023-04-11 19:26:45 -05:00 committed by megastruktur
parent 2e391e21c2
commit cfbe7892f2

View file

@ -215,7 +215,7 @@ export async function simpleRollPopup() {
icon: "<i class='fas fa-check'></i>",
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);
},