This commit is contained in:
aozhiwei 2022-10-06 10:34:38 +08:00
parent 15cdde45a7
commit 138b59c626
2 changed files with 2 additions and 0 deletions

View File

@ -549,6 +549,7 @@ void Bullet::Check(float distance)
#ifdef DEBUG
a8::XPrintf("shiled destory\n", {});
#endif
c->GetTrigger()->ShieldDestory();
c->RemoveBuffByUniId(hold_shield_buff->buff_uniid);
}
eat = true;

View File

@ -1168,6 +1168,7 @@ void Player::_CMRequestBulletDmg(f8::MsgHdr& hdr, const cs::CMRequestBulletDmg&
c->shield_max_hp_,
c->shield_hp_);
if (c->shield_hp_ <= 0) {
c->GetTrigger()->ShieldDestory();
c->RemoveBuffByUniId(hold_shield_buff->buff_uniid);
}
shield = true;