From 438c5a9c727b461ab3d6bec844cb9abeb9b1b7c8 Mon Sep 17 00:00:00 2001 From: The Happy Anarchist Date: Sun, 3 Jan 2021 15:53:43 -1000 Subject: [PATCH] Clarify Wisdom Save bonus applying to roll --- src/module/dice.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/module/dice.js b/src/module/dice.js index bd56f8a..555cf37 100644 --- a/src/module/dice.js +++ b/src/module/dice.js @@ -349,7 +349,7 @@ export class AcksDice { callback: (html) => { rolled = true; rollData.form = html[0].querySelector("form"); - rollData.data.roll.target = parseInt(rollData.data.roll.target) - parseInt(rollData.data.roll.magic); + rollData.parts.push(`${rollData.data.roll.magic}`); rollData.title += ` ${game.i18n.localize("ACKS.saves.magic.short")} (${rollData.data.roll.magic})`; roll = AcksDice.sendRoll(rollData); }, @@ -368,7 +368,7 @@ export class AcksDice { callback: (html) => { rolled = true; rollData.form = html[0].querySelector("form"); - rollData.data.roll.target = parseInt(rollData.data.roll.target) - parseInt(rollData.data.roll.magic); + rollData.parts.push(`${rollData.data.roll.magic}`); roll = AcksDice.sendRoll(rollData); }, },