Fixed: Attributes that aren't ability scores now have their modifiers removed correctly

This commit is contained in:
Stefan Zermatten
2021-01-28 16:05:47 +02:00
parent 78efe639ed
commit d596061fa8

View File

@@ -46,6 +46,8 @@ function combineAttribute(stat, aggregator, memo){
stat.currentValue = stat.value - (stat.damage || 0);
if (stat.attributeType === 'ability') {
stat.modifier = Math.floor((stat.currentValue - 10) / 2);
} else {
stat.modifier = undefined;
}
stat.hide = aggregator.hasNoEffects &&
stat.baseValue === undefined ||