From c1c96a83790be40e07fe1da87b962d7e3bcfa6fe Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期四, 25 四月 2019 12:25:09 +0800
Subject: [PATCH] 382 ai流程控制锁血功能

---
 Fight/GameActor/GA_NpcClientFightNorm.cs |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/Fight/GameActor/GA_NpcClientFightNorm.cs b/Fight/GameActor/GA_NpcClientFightNorm.cs
index fc287ee..065201e 100644
--- a/Fight/GameActor/GA_NpcClientFightNorm.cs
+++ b/Fight/GameActor/GA_NpcClientFightNorm.cs
@@ -135,6 +135,13 @@
         m_ProcessManager = new ProcessManager();
         m_ProcessManager.Load(this);
 
+        InitAI();
+
+        heroAttacked = false;
+    }
+
+    protected virtual void InitAI()
+    {
         if (NpcConfig.AIType == 1)
         {
             m_AIHandler = new AI_Npc_200(this, BornPos);
@@ -143,8 +150,6 @@
         {
             m_AIHandler = new AI_Npc_198(this, BornPos);
         }
-
-        heroAttacked = false;
     }
 
     public override void OnClick()

--
Gitblit v1.8.0