Fixed bug where rolls could not set strings

This commit is contained in:
Stefan Zermatten
2023-01-31 14:51:22 +02:00
parent 265e3bf970
commit 72d932538b

View File

@@ -40,8 +40,8 @@ export default function applyRoll(node, actionContext){
prop.roll.value = toString(reduced);
}
// If we didn't end up with a constant of finite amount, give up
if (reduced?.parseType !== 'constant' || !isFinite(reduced.value)){
// If we didn't end up with a constant or a number of finite value, give up
if (reduced?.parseType !== 'constant' || (reduced.valueType === 'number' && !isFinite(reduced.value))) {
return applyChildren();
}
const value = reduced.value;