This commit is contained in:
aozhiwei 2024-01-05 15:18:31 +08:00
parent 5dea45d0d3
commit 1b0450cd9d

View File

@ -785,7 +785,7 @@ float BattleDataContext::CalcDmg(Creature* target, IBullet* bullet)
float DDR = 0.0f; float DDR = 0.0f;
float DTR = 0.0f; float DTR = 0.0f;
float finaly_dmg = vDmg * vEbc * vEd * (1 + DDR) * (1 + DTR); float finaly_dmg = vDmg * vEbc * vEd * (1 + DDR) * (1 + DTR);
return std::round(finaly_dmg); return std::max(1.0f, std::round(finaly_dmg));
} }
float BattleDataContext::CalcDmg(Obstacle* target, IBullet* bullet) float BattleDataContext::CalcDmg(Obstacle* target, IBullet* bullet)