This commit is contained in:
aozhiwei 2024-02-16 18:40:16 +08:00
parent 4cd39d4af0
commit a275cac33d
2 changed files with 8 additions and 0 deletions

View File

@ -1602,6 +1602,11 @@ void Creature::Shot(glm::vec3& target_dir, bool& shot_ok, float fly_distance, in
void Creature::AutoLoadingBullet(bool manual)
{
if (HasBuffEffect(kBET_Jump) ||
HasBuffEffect(kBET_Fly) ||
HasBuffEffect(kBET_Floating)) {
return;
}
Weapon* p_weapon = GetCurrWeapon();
if (second_weapon.meta) {
p_weapon = &second_weapon;

View File

@ -486,6 +486,9 @@ void Player::UpdateUseItemIdx()
if (room->HasRoomSwitch(kRoomSwitchDisableUseItem)) {
return;
}
if (HasBuffEffect(kBET_Vertigo)) {
return;
}
#if 0
if (use_item_idx == 24) {
use_item_idx = IS_SHEN_BAO;