This commit is contained in:
aozhiwei 2023-12-21 16:53:41 +08:00
parent 4c001e7eed
commit e29d44858b

View File

@ -1828,7 +1828,12 @@ void Player::_CMReportHookHitPos(f8::MsgHdr* hdr, const cs::CMReportHookHitPos&
void Player::_CMReportSpecShotHitPos(f8::MsgHdr* hdr, const cs::CMReportSpecShotHitPos& msg)
{
Buff* buff = GetBuffByEffectId(kBET_Floating);
if (buff && buff->meta->GetBuffParam4(buff) > 0) {
if (buff->GetV(0) < buff->meta->GetBuffParam5(buff)) {
buff->IncV(0, 1);
}
}
}
void Player::SetShotHold(bool hold)