From 6cd8d57e2417a034faae341d3be1e54d5e324582 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期四, 07 三月 2019 22:23:00 +0800
Subject: [PATCH] Merge branch 'master' of http://mobile.173on.com:10010/r/snxxz_scripts

---
 Fight/GameActor/GA_NpcClientFightNorm.cs |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/Fight/GameActor/GA_NpcClientFightNorm.cs b/Fight/GameActor/GA_NpcClientFightNorm.cs
index 353a673..fa9f7b4 100644
--- a/Fight/GameActor/GA_NpcClientFightNorm.cs
+++ b/Fight/GameActor/GA_NpcClientFightNorm.cs
@@ -50,6 +50,12 @@
 
     protected SampleAI m_AIHandler;
 
+    /// <summary>
+    /// 鏄惁琚嫳闆勬敾鍑讳簡
+    /// </summary>
+    public bool heroAttacked;
+    public int posIndex = -1;
+
     protected override void OnInit(GameNetPackBasic package)
     {
         base.OnInit(package);
@@ -73,10 +79,12 @@
         // 鎴樻枟绫诲瀷鐨勬�墿闅忔満鏈濆悜
         Rotation = Quaternion.Euler(0, UnityEngine.Random.Range(0, 360), 0);
 
-        if (NpcConfig.IsBoss <= 1 && NpcConfig.AIType != 201)
+        if (NpcConfig.IsBoss <= 1 && NpcConfig.AIType == 1)
         {
-            m_AIHandler = new AI_Normal(this, BornPos);
+            m_AIHandler = new AI_Npc_200(this, BornPos);
         }
+
+        heroAttacked = false;
     }
 
     public override void OnClick()
@@ -137,7 +145,11 @@
         }
 
         belongEventID = -1;
-
+        if (posIndex != -1)
+        {
+            HeroRoundGird.Instance.Release(posIndex);
+            posIndex = -1;
+        }
         base.OnUnit();
     }
 

--
Gitblit v1.8.0