From e2fded158981fffe4e6272cca24c25d8e4692860 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期三, 26 九月 2018 12:01:37 +0800
Subject: [PATCH] update 不同地图传送包坐标发送坐标修改

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

diff --git a/Fight/MapTransferUtility.cs b/Fight/MapTransferUtility.cs
index 43da1b8..6361a2e 100644
--- a/Fight/MapTransferUtility.cs
+++ b/Fight/MapTransferUtility.cs
@@ -248,15 +248,24 @@
         // 鍔犲叆鍒ゆ柇鏄惁涓栫晫BOSS鍒ゆ柇
         WorldBossConfig _worldBoss = Config.Instance.Get<WorldBossConfig>(npcID);
 
-        if(_findLocation)
+        if (_findLocation)
         {
             var _mapConfig = Config.Instance.Get<MapConfig>(_npcLocation.mapId);
             // 涓珛鍦板浘
-            if(_mapConfig.Camp == 5 && _worldBoss != null)
+            if (_mapConfig.Camp == 5 && _worldBoss != null)
             {
-                Send_WorldTransfer(_npcLocation.mapId,
-                                   new Vector3(_npcLocation.position.x * 2, 0, _npcLocation.position.y * 2),
-                                   MapTransferType.WorldTransport, 0, npcID);
+                if (_npcLocation.mapId == PlayerDatas.Instance.baseData.MapID)
+                {
+                    Send_WorldTransfer(_npcLocation.mapId,
+                                       new Vector3(_npcLocation.position.x * 2, 0, _npcLocation.position.y * 2),
+                                       MapTransferType.WorldTransport, 0, npcID);
+                }
+                else
+                {
+                    Send_WorldTransfer(_npcLocation.mapId,
+                                       new Vector3(_mapConfig.BornPoints[0].x, 0, _mapConfig.BornPoints[0].y),
+                                       MapTransferType.WorldTransport, 0, npcID);
+                }
                 return;
             }
         }

--
Gitblit v1.8.0