From 8fd011d306e84d36390beb5467cb2d2a00a75ebe Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期五, 01 二月 2019 14:40:44 +0800
Subject: [PATCH] 382 选择目标为不可攻击对象的时候无法自动战斗
---
Fight/Actor/AI/HeroAI_Auto.cs | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Fight/Actor/AI/HeroAI_Auto.cs b/Fight/Actor/AI/HeroAI_Auto.cs
index bbaf897..166856b 100644
--- a/Fight/Actor/AI/HeroAI_Auto.cs
+++ b/Fight/Actor/AI/HeroAI_Auto.cs
@@ -283,7 +283,9 @@
GActorFight _atkTarget = null;
// 澶勭悊鐜╁涓诲姩鍒囨崲鏀诲嚮鐩爣琛屼负
- if (_hero.LockTarget != null && _hero.LockTarget is GActorFight)
+ if (_hero.LockTarget != null
+ && _hero.LockTarget is GActorFight
+ && (_hero.LockTarget as GActorFight).CanAtked())
{
_atkTarget = _hero.LockTarget as GActorFight;
}
--
Gitblit v1.8.0