mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
优化部分伤害计算
This commit is contained in:
parent
afce42af23
commit
1e09912b84
5 changed files with 17 additions and 19 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue