diff --git a/src/config/skill/buff.ts b/src/config/skill/buff.ts index fa04392..9baf5bc 100644 --- a/src/config/skill/buff.ts +++ b/src/config/skill/buff.ts @@ -1,4 +1,4 @@ -import { BattleRole, callDmgPercent, callDmgReduc, replace } from '@/tool'; +import { BattleRole, callDmgPercent, callDmgReduc, callReducPercent, replace } from '@/tool'; import i18n from '../i18n'; const { t } = i18n; @@ -196,7 +196,8 @@ export class LiuXue extends AttackBuff { return replace(t('skill.liuxue.0'), [this.percent]); } takeEffect(owner: BattleRole): void { - const dmg = Math.ceil(owner.attr.curHp * (this.percent / 100) * this.layer); + const reducPercent = callReducPercent(owner.attr.def + owner.extraAttr.def, owner.attr.lv); //目标防御提供的减伤比例 + const dmg = Math.ceil(owner.attr.curHp * (this.percent / 100) * this.layer * (1 - reducPercent)); owner.addHp(-1 * dmg); owner.debuffLog(replace(t('skill.liuxue.1'), [this.layer, t(owner.type), dmg])); }