trap on it skill test modifier is blank
This commit is contained in:
+3
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user