1
This commit is contained in:
parent
7fca5056f4
commit
73b3074a7f
@ -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)) {
|
if (a8::HasBitFlag(status, CS_NoDie)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (dmg_bp > 0) {
|
||||||
|
int i = 0;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef MYDEBUG
|
#ifdef MYDEBUG
|
||||||
#if 0
|
#if 0
|
||||||
@ -2330,7 +2333,7 @@ void Human::OnBulletHit(IBullet* bullet)
|
|||||||
if (bullet->GetSkillMeta() && SkillHelper::ProcBulletDmg(bullet, this, finaly_dmg)) {
|
if (bullet->GetSkillMeta() && SkillHelper::ProcBulletDmg(bullet, this, finaly_dmg)) {
|
||||||
} else {
|
} else {
|
||||||
finaly_dmg = bullet->GetSender().Get()->GetNetData()->CalcDmg(this, bullet);
|
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()) {
|
if (bullet->GetSender().Get()->IsHuman()) {
|
||||||
bullet->GetSender().Get()->AsHuman()->stats->damage_amount_out += finaly_dmg;
|
bullet->GetSender().Get()->AsHuman()->stats->damage_amount_out += finaly_dmg;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user