修正追加攻击伤害计算增益判断

This commit is contained in:
UCPr 2025-03-24 00:11:12 +08:00
parent a54fee3edb
commit 6c77855f64
6 changed files with 17 additions and 13 deletions

View file

@ -25,8 +25,10 @@ export interface skill {
* X"()Y()使Y的类型
* - range须全匹配redirect向后覆盖
* - range向后覆盖
*
*
*/
redirect?: string
redirect?: string | string[]
/** 角色面板伤害统计中是否隐藏显示 */
isHide?: boolean
/** 禁用伤害计算cache */
@ -411,7 +413,7 @@ export class Calculator {
/**
*
* @param isRatio buff.value为数值类型<1时按初始数值百分比提高处理
* @param isRatio buff.value为数值//<1时按初始数值百分比提高处理
*/
get(type: buff['type'], initial: number, skill: skill, usefulBuffs: buff[] = this.buffM.buffs, isRatio = false): number {
return this.props[type] ??= this.buffM._filter(usefulBuffs, {