This commit is contained in:
aozhiwei 2024-01-11 11:44:07 +08:00
parent 7fca5056f4
commit 73b3074a7f

View File

@ -229,6 +229,9 @@ void Human::DecHP(float dec_hp, int killer_id, const std::string killer_name, in
if (a8::HasBitFlag(status, CS_NoDie)) {
return;
}
if (dmg_bp > 0) {
int i = 0;
}
#endif
#ifdef MYDEBUG
#if 0
@ -2330,7 +2333,7 @@ void Human::OnBulletHit(IBullet* bullet)
if (bullet->GetSkillMeta() && SkillHelper::ProcBulletDmg(bullet, this, finaly_dmg)) {
} else {
finaly_dmg = bullet->GetSender().Get()->GetNetData()->CalcDmg(this, bullet);
int dmg_bp = bullet->GetSender().Get()->GetNetData()->GetDmgBp();
dmg_bp = bullet->GetSender().Get()->GetNetData()->GetDmgBp();
}
if (bullet->GetSender().Get()->IsHuman()) {
bullet->GetSender().Get()->AsHuman()->stats->damage_amount_out += finaly_dmg;