优化部分伤害计算

This commit is contained in:
UCPr 2025-01-24 17:03:05 +08:00
parent afce42af23
commit 1e09912b84
5 changed files with 17 additions and 19 deletions

View file

@ -137,6 +137,8 @@ export class Calculator {
damage.add = (d) => {
if (typeof d === 'string')
d = this.calc_skill(d);
if (!d)
return;
logger.debug('追加伤害:' + d.skill.name, d.result);
damage.result.expectDMG += d.result.expectDMG;
damage.result.critDMG += d.result.critDMG;