From 9550f1c5aec05b5c6c5eabc5cae9d9c944eddf5d Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期三, 26 九月 2018 16:35:33 +0800
Subject: [PATCH] Merge 3811 【前端】前期BOSS分线修改
---
Fight/MapTransferUtility.cs | 26 ++++++++++++++++++++++++--
1 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/Fight/MapTransferUtility.cs b/Fight/MapTransferUtility.cs
index 3e5888d..6d0ae7c 100644
--- a/Fight/MapTransferUtility.cs
+++ b/Fight/MapTransferUtility.cs
@@ -126,7 +126,7 @@
#region npc
public int NpcID
{
- get; private set;
+ get; set;
}
#endregion
@@ -245,9 +245,31 @@
MapModel _model = ModelCenter.Instance.GetModel<MapModel>();
GActor _npc = null;
-
// 鍔犲叆鍒ゆ柇鏄惁涓栫晫BOSS鍒ゆ柇
WorldBossConfig _worldBoss = Config.Instance.Get<WorldBossConfig>(npcID);
+
+ if (_findLocation)
+ {
+ var _mapConfig = Config.Instance.Get<MapConfig>(_npcLocation.mapId);
+ // 涓珛鍦板浘
+ if (_mapConfig.Camp == 5 && _worldBoss != null)
+ {
+ if (_npcLocation.mapId == PlayerDatas.Instance.baseData.MapID)
+ {
+ Send_WorldTransfer(_npcLocation.mapId,
+ new Vector3(_hero.Pos.x * 2, 0, _hero.Pos.z * 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;
+ }
+ }
+
FairyGrabBossConfig _fairyBoss = Config.Instance.Get<FairyGrabBossConfig>(npcID);
bool _isBoss = _worldBoss != null || _fairyBoss != null;
if (_isBoss && _findLocation)
--
Gitblit v1.8.0