1
This commit is contained in:
parent
5dea45d0d3
commit
1b0450cd9d
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user