This commit is contained in:
aozhiwei 2023-04-13 16:25:20 +08:00
parent 6ce1e21da3
commit dddb137f9f

View File

@ -746,8 +746,13 @@ float BattleDataContext::CalcDmg(Explosion* e)
float BattleDataContext::GetTotalAtk(IBullet* bullet)
{
float total_atk = (GetHeroTotalAtk() / 100) * GetWeaponAtk(bullet);
return total_atk;
float direct_atk = owner_.Get()->GetAbility()->GetAttrDirect(kHAT_Atk);
if (direct_atk > 0.001f) {
return direct_atk;
} else {
float total_atk = (GetHeroTotalAtk() / 100) * GetWeaponAtk(bullet);
return total_atk;
}
}
float BattleDataContext::GetMaxHP()