diff --git a/DungeonShooting_Godot/src/game/role/enemy/state/AiFindAmmoState.cs b/DungeonShooting_Godot/src/game/role/enemy/state/AiFindAmmoState.cs index 53d0854..9199909 100644 --- a/DungeonShooting_Godot/src/game/role/enemy/state/AiFindAmmoState.cs +++ b/DungeonShooting_Godot/src/game/role/enemy/state/AiFindAmmoState.cs @@ -39,8 +39,7 @@ public override void PhysicsProcess(float delta) { - var activeWeapon = Master.Holster.ActiveWeapon; - if (activeWeapon != null && !activeWeapon.IsTotalAmmoEmpty()) //已经有弹药了 + if (!Master.IsAllWeaponTotalAmmoEmpty()) //已经有弹药了 { ChangeStateLate(GetNextState()); return;