This commit is contained in:
aozhiwei 2024-01-09 18:30:26 +08:00
parent 44a3930eaa
commit 53bfe6145b

View File

@ -784,6 +784,12 @@ float BattleDataContext::CalcDmg(Creature* target, IBullet* bullet)
g_calc_dmg_context = {0}; g_calc_dmg_context = {0};
g_calc_dmg_context.is_crit = 0; g_calc_dmg_context.is_crit = 0;
#ifdef MYDEBUG
if (hero_ability_->hero_meta->id() == 9011) {
int i = 0;
}
#endif
float vEbc = 1.0f; float vEbc = 1.0f;
float vEd = 1 - target->GetNetData()->GetDef(); float vEd = 1 - target->GetNetData()->GetDef();
float X = (1 + hero_ability_->GetCrit()) * (1 - target->GetNetData()->GetBlock()) - 1; float X = (1 + hero_ability_->GetCrit()) * (1 - target->GetNetData()->GetBlock()) - 1;