From 48c89eefba558cc02f9c32e20c033e21264e13d5 Mon Sep 17 00:00:00 2001 From: mengyxu Date: Tue, 20 May 2025 14:29:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=88=86=E4=BC=A4=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tool/caller/battle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tool/caller/battle.ts b/src/tool/caller/battle.ts index dbf9393..6ddf4ed 100644 --- a/src/tool/caller/battle.ts +++ b/src/tool/caller/battle.ts @@ -165,7 +165,7 @@ export class BattleRole { const crit = attr.crit + extra.crit - target.attr.critAvoid - target.extraAttr.critAvoid; //最终暴击率 this.crit = Math.random() < crit / 100; if (this.crit) { - let critDmg = attr.critDmg + extra.critDmg - target.attr.critDmgReduc - target.extraAttr.critDmg; //目标最终承受暴击伤害 + let critDmg = attr.critDmg + extra.critDmg - target.attr.critDmgReduc - target.extraAttr.critDmgReduc; //目标最终承受暴击伤害 critDmg = critDmg < 100 ? 100 : critDmg; //暴击伤害不低于100% this.baseDmg *= critDmg / 100; //暴击时目标承受伤害 }