Fixed effects not applying to damage in actions

This commit is contained in:
Thaum Rystra
2024-10-30 10:03:47 +02:00
parent 74bd291426
commit ce9753fa9c
5 changed files with 66 additions and 8 deletions

View File

@@ -133,7 +133,7 @@ export function aggregateCalculationEffects(calcObj, getEffectFromId) {
// Multiply
if (aggregator.mul) {
// Wrap the previous node in brackets if it's another operator
if (calcObj.parseType === 'operator') {
if (calcObj.valueNode.parseType === 'operator') {
calcObj.valueNode = parenthesis.create({
content: calcObj.valueNode
});