From 3f5b9a7537dfa546029ce3da2fce3ca4f7635d86 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期一, 28 一月 2019 09:53:43 +0800
Subject: [PATCH] 2958 【1.5.200】选中跨服boss、采集跨服宝箱时退出跨服,自动战斗异常

---
 Fight/Actor/HeroBehaviour.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Fight/Actor/HeroBehaviour.cs b/Fight/Actor/HeroBehaviour.cs
index c29ab3c..5531923 100644
--- a/Fight/Actor/HeroBehaviour.cs
+++ b/Fight/Actor/HeroBehaviour.cs
@@ -463,7 +463,7 @@
             Vector3 _dir;
             float _radius = 0.5f;
             GActorFight _fight = m_Hero.LockTarget as GActorFight;
-            if (m_Hero.LockTarget != null && _fight.CanAtked())
+            if (_fight != null && _fight.CanAtked())
             {
                 GActorNpcFight _npcFight = m_Hero.LockTarget as GActorNpcFight;
                 if (_npcFight != null)
@@ -477,7 +477,7 @@
             else if (m_Hero.SelectTarget != null)
             {
                 GActorNpcFight _npcFight = m_Hero.SelectTarget as GActorNpcFight;
-                if (_npcFight != null)
+                if (_npcFight != null && _fight.CanAtked())
                 {
                     _radius = _npcFight.NpcConfig.ModelRadius;
                 }

--
Gitblit v1.8.0