From 3a7fb7d3b3cf5910ea5970d0260e295daa3a8ece Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9D=8Exl?= <1911159016@qq.com> Date: Mon, 8 Apr 2024 15:39:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dai=E9=80=9A=E7=9F=A5=E5=85=B6?= =?UTF-8?q?=E5=AE=83ai=E6=97=B6=E4=B8=8D=E4=BC=9A=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E9=98=B5=E8=90=A5=E6=98=AF=E5=90=A6=E7=9B=B8=E5=90=8C=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DungeonShooting_Godot/src/game/world/World.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;