diff --git a/DungeonShooting_Godot/src/game/world/World.cs b/DungeonShooting_Godot/src/game/world/World.cs index f6f9fa43..f5a32fdb 100644 --- a/DungeonShooting_Godot/src/game/world/World.cs +++ b/DungeonShooting_Godot/src/game/world/World.cs @@ -144,7 +144,7 @@ public partial class World : CanvasModulate, ICoroutine { foreach (var role in Role_InstanceList) { - if (role != self && !role.IsDestroyed && role.AffiliationArea == self.AffiliationArea && role is AiRole enemy) + if (role != self && !role.IsDestroyed && role.AffiliationArea == self.AffiliationArea && role is AiRole enemy && !self.IsEnemy(enemy)) { //将未发现目标的敌人状态置为惊讶状态 var controller = enemy.StateController;