HOTFIX: fix spellparts that don't already exist
This commit is contained in:
parent
19134d3ab1
commit
59f28f6956
1 changed files with 2 additions and 1 deletions
|
@ -487,7 +487,8 @@ const atree_collect_spells = new (class extends ComputeNode {
|
||||||
}
|
}
|
||||||
else if ('hits' in effect) {
|
else if ('hits' in effect) {
|
||||||
for (const [idx, v] of Object.entries(effect.hits)) { // looks kinda similar to multipliers case... hmm... can we unify all of these three? (make healpower a list)
|
for (const [idx, v] of Object.entries(effect.hits)) { // looks kinda similar to multipliers case... hmm... can we unify all of these three? (make healpower a list)
|
||||||
part.hits[idx] += v;
|
if (idx in part.hits) { part.hits[idx] += v; }
|
||||||
|
else { part.hits[idx] = v; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue