Fixed NaNing of skills that have rolled effects

This commit is contained in:
Stefan Zermatten
2022-11-19 18:57:26 +02:00
parent cea63e6a8e
commit a568cdfb1e

View File

@@ -45,7 +45,8 @@ export default function aggregateEffect({ node, linkedNode, link }) {
// get a shorter reference to the aggregator document
const aggregator = node.data.effectAggregator;
// Get the result of the effect
const result = linkedNode.data.amount?.value;
let result = linkedNode.data.amount?.value;
if (typeof result !== 'number') result = undefined;
// Aggregate the effect based on its operation
switch (linkedNode.data.operation) {