1
This commit is contained in:
parent
4a8b842110
commit
ca9c9ed456
@ -275,6 +275,9 @@ void Car::OnBulletHit(Bullet* bullet)
|
||||
GetAbility()->GetAttrAbs(kHAT_Def);
|
||||
float finaly_dmg = dmg * (1 - def/MetaMgr::Instance()->K);
|
||||
finaly_dmg = std::max(finaly_dmg, 0.0f);
|
||||
if (bullet->meta->buff_meta) {
|
||||
MustBeAddBuff(bullet->sender.Get(), bullet->meta->i->buffid());
|
||||
}
|
||||
DecHP(finaly_dmg,
|
||||
bullet->sender.Get()->GetUniId(),
|
||||
bullet->sender.Get()->GetName(),
|
||||
|
@ -91,7 +91,7 @@ void Hero::OnBulletHit(Bullet* bullet)
|
||||
sender->stats.damage_amount_out += finaly_dmg;
|
||||
#endif
|
||||
if (bullet->meta->buff_meta) {
|
||||
MustBeAddBuff(this, bullet->meta->i->buffid());
|
||||
MustBeAddBuff(bullet->sender.Get(), bullet->meta->i->buffid());
|
||||
}
|
||||
DecHP(finaly_dmg,
|
||||
bullet->sender.Get()->GetUniId(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user