修复ai通知其它ai时不会判断阵营是否相同的问题
This commit is contained in:
parent
e115d5863c
commit
3a7fb7d3b3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user