From e1dcfa049cd7f676fb56c91bee6737dce0aed7e4 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期四, 25 四月 2019 13:39:02 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
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