修复支援怪加点问题
This commit is contained in:
parent
e97198495b
commit
d9c906ecb9
@ -357,7 +357,9 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
||||
}
|
||||
|
||||
// 如果有加点
|
||||
var point = core.material.enemys[enemyId].point;
|
||||
var point = guards.reduce(function (curr, g) {
|
||||
return curr + core.material.enemys[g[2]].point;
|
||||
}, enemy.point) || 0;
|
||||
if (core.flags.enableAddPoint && point > 0) {
|
||||
core.push(todo, [{ "type": "insert", "name": "加点事件", "args": [point] }]);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user