From 260719b2c8100e53b0e90d96a7c182877c015c4b Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期六, 27 四月 2019 17:27:22 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 System/Message/RichMoveEvent.cs |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/System/Message/RichMoveEvent.cs b/System/Message/RichMoveEvent.cs
index 110e202..c00d64f 100644
--- a/System/Message/RichMoveEvent.cs
+++ b/System/Message/RichMoveEvent.cs
@@ -45,6 +45,11 @@
             case RichTextEventEnum.MOVENPC:
                 {
                     int id = int.Parse(href.mSplits["movenpc"]);
+                    var movetype = 2;
+                    if (href.mSplits.ContainsKey("movetype"))
+                    {
+                        movetype = int.Parse(href.mSplits["movetype"]);
+                    }
                     var error = 0;
                     if (!TestMoveNpc(id, out error))
                     {
@@ -55,7 +60,7 @@
                     if (hero != null)
                     {
                         PlayerDatas.Instance.hero.Behaviour.StopHandupAI();
-                        SnxxzGame.Instance.StartCoroutine(WaitForSkillFinished(id));
+                        SnxxzGame.Instance.StartCoroutine(WaitForSkillFinished(id, movetype));
                     }
                 }
                 break;
@@ -202,7 +207,7 @@
         SnxxzGame.Instance.StartCoroutine(WaitForSkillFinished(new Vector3(m_Posx / 2, 0, m_Posy / 2)));
     }
 
-    private IEnumerator WaitForSkillFinished(int id)
+    private IEnumerator WaitForSkillFinished(int id, int movetype)
     {
         GA_Hero _hero = PlayerDatas.Instance.hero;
 
@@ -227,7 +232,7 @@
             yield break;
         }
 
-        MapTransferUtility.Instance.MoveToNPC(id);
+        MapTransferUtility.Instance.MoveToNPC(id, 0, movetype == 1);
     }
 
     private IEnumerator WaitForSkillFinished(Vector3 pos)

--
Gitblit v1.8.0