This commit is contained in:
Putoo
2026-07-18 20:42:25 +08:00
parent 8d1ab092f2
commit 338ccd807c
3 changed files with 4 additions and 7 deletions

View File

@@ -81,17 +81,15 @@ public class FightCompute
double fight_Harm = harmRide * atkUser.maxAtk;
defHarm +=Convert.ToInt32( 0 - fight_Harm);
}
else
{
defHarm = -1;
}
defHarm = defHarm > -1 ? -1 : defHarm;
//暴击处理
if (atkUser.Crit > 0)
{
if (randomTrigger(atkUser.Crit))
{
defHarm = Convert.ToInt32(defHarm * 1.5) ;
defHarm += Convert.ToInt32(defHarm * 1.5) ;
}
}