This commit is contained in:
aozhiwei 2023-01-04 10:41:37 +08:00
parent ea4b4092ca
commit c9b06f80b2

View File

@ -521,9 +521,7 @@ float BattleDataContext::CalcDmg(Creature* target, IBullet* bullet)
float total_atk = GetTotalAtk(bullet);
float normal_dmg = total_atk * (1 - target->GetBattleContext()->GetDef() / 1000);
if (bullet->GetStrengthenWall()) {
normal_dmg *= 1.2f;
}
normal_dmg *= 1 + bullet->GetStrengthenWall();
float crit = g_calc_dmg_context.is_crit ? GetCritRate(bullet) : 0;
float dodge = IsDodge(bullet) ? GetDodgeRuduce(bullet) : 0;
float finaly_dmg = normal_dmg * (1.0f + crit + dodge);