Bugfix pt. 2: Totals now are evaluated in second round
This commit is contained in:
parent
59f28f6956
commit
53f502b96d
1 changed files with 14 additions and 5 deletions
|
@ -578,8 +578,17 @@ class SpellDamageCalcNode extends ComputeNode {
|
||||||
type: "heal",
|
type: "heal",
|
||||||
heal_amount: _heal_amount
|
heal_amount: _heal_amount
|
||||||
}
|
}
|
||||||
} else if ('hits' in part) {
|
}
|
||||||
spell_result = {
|
else {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
spell_result.name = part.name;
|
||||||
|
spell_results.push(spell_result);
|
||||||
|
spell_result_map.set(part.name, spell_result);
|
||||||
|
}
|
||||||
|
for (const part of spell_parts) {
|
||||||
|
if ('hits' in part) {
|
||||||
|
let spell_result = {
|
||||||
normal_min: [0, 0, 0, 0, 0, 0],
|
normal_min: [0, 0, 0, 0, 0, 0],
|
||||||
normal_max: [0, 0, 0, 0, 0, 0],
|
normal_max: [0, 0, 0, 0, 0, 0],
|
||||||
normal_total: [0, 0],
|
normal_total: [0, 0],
|
||||||
|
@ -610,11 +619,11 @@ class SpellDamageCalcNode extends ComputeNode {
|
||||||
spell_result.heal_amount += subpart.heal_amount;
|
spell_result.heal_amount += subpart.heal_amount;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
spell_result.name = part.name;
|
spell_result.name = part.name;
|
||||||
spell_results.push(spell_result);
|
spell_results.push(spell_result);
|
||||||
spell_result_map.set(part.name, spell_result);
|
spell_result_map.set(part.name, spell_result);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return spell_results;
|
return spell_results;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue