From 1ccb219edb888d913a2efe264f5e86b735663232 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期四, 23 五月 2019 14:10:48 +0800
Subject: [PATCH] 3626 【2.0】npc对话任务完成后小概率再次自动打开对话

---
 Fight/MapTransferUtility.cs |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Fight/MapTransferUtility.cs b/Fight/MapTransferUtility.cs
index c942ba2..27741c9 100644
--- a/Fight/MapTransferUtility.cs
+++ b/Fight/MapTransferUtility.cs
@@ -261,6 +261,7 @@
         {
             yield break;
         }
+
         var sid = data.sid;
         NpcID = data.npcID;
         MapTransferDoType = E_MapTransferDoType.Npc;
@@ -815,7 +816,6 @@
     private void MoveToExistNpc(int npcID, GActor npc)
     {
         GA_Hero _hero = PlayerDatas.Instance.hero;
-        Debug.Log("11111111111111");
 
         NPCConfig _config = NPCConfig.Get(npcID);
 
@@ -898,7 +898,7 @@
                     {
                         _hero.LockTarget = npc;
                         _hero.SelectTarget = npc;
-
+                        Clear();
                         NPCInteractProcessor.InvokeEvent((E_NpcType)_config.NPCType, npcID, npc.ServerInstID);
 
                         Vector3 _npc2heroDir = MathUtility.ForwardXZ(npc.Pos, _hero.Pos);
@@ -1361,6 +1361,7 @@
                 if (_chkDistSqrt <= Mathf.Pow(_chkDist, 2))
                 {
                     Clear();
+                    HeroAIRecorder.ClearRecord();
                     NPCInteractProcessor.InvokeEvent((E_NpcType)_npcConfig.NPCType, _npcConfig.NPCID, _npc.ServerInstID);
                     _hero.LockTarget = _npc;
                     _hero.SelectTarget = _npc;

--
Gitblit v1.8.0