From 0afe06fd662abfc6a16239ace8ce311f06f76fce Mon Sep 17 00:00:00 2001 From: The Last Scrub Date: Sat, 28 Nov 2020 23:13:46 -0800 Subject: [PATCH] trap on it skill test modifier is blank --- module/roll/roll.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/roll/roll.js b/module/roll/roll.js index 25fd56a..c51c0a5 100644 --- a/module/roll/roll.js +++ b/module/roll/roll.js @@ -215,8 +215,9 @@ export function sendPercentileTestToChat(actor, skill, target){ let targetModifier = html.find("[name='targetModifier']").val(); // this is text as a heads up let newTarget = parseInt(originalTarget); // this should be an int, but technically the incoming value is text, so parse it just to be safe - - newTarget += parseInt(targetModifier); + if(targetModifier.trim() != ""){ + newTarget += parseInt(targetModifier); + } if(isLethalityTest){ sendLethalityTestToChat(actor, label, newTarget);