This commit is contained in:
aozhiwei 2021-10-29 16:38:24 +08:00
parent f9e86da208
commit 7b1f6b0934
2 changed files with 11 additions and 0 deletions

View File

@ -2925,6 +2925,11 @@ void Human::OnBuffRemove(Buff& buff)
camouflage_aiming_addition_ = std::max(camouflage_aiming_addition_, 0);
}
break;
case kBET_Sprint:
{
last_shot_frameno_ = room->GetFrameNo() + SERVER_FRAME_RATE;
}
break;
default:
{
}

View File

@ -221,9 +221,15 @@ void Player::UpdateShot()
return;
}
if (HasBuffEffect(kBET_Vertigo) && !HasBuffEffect(kBET_AutoShot)) {
shot_start = false;
shot_hold = false;
series_shot_frames = 0;
return;
}
if (HasBuffEffect(kBET_Sprint)) {
shot_start = false;
shot_hold = false;
series_shot_frames = 0;
return;
}
Weapon* p_weapon = GetCurrWeapon();