From 7cda738936cee0049a343ff13279a94fa7816c16 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 23 五月 2022 17:00:22 +0800
Subject: [PATCH] 9415 【BT】【后端】古神战场(同场次提前结算的玩家无法再进入;优化无法进入系统提示;增加开启X分钟后无法进入;优化复活坐标)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossBattlefield.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossBattlefield.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossBattlefield.py
index 4562c7b..e24fc73 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossBattlefield.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossBattlefield.py
@@ -966,7 +966,7 @@
     factionSafeAreaRandPosList = IpyGameDataPY.GetFuncEvalCfg("CrossBattlefieldFB", 3)
     if faction and faction <= len(factionSafeAreaRandPosList):
         safePosX, safePosY, _ = factionSafeAreaRandPosList[faction - 1]
-        rebornPosList.append([safePosX, safePosY, 3])
+        rebornPosList.append([safePosX, safePosY, 0, 3])
         
     # 包含占领的水晶
     if includeCrystal:
@@ -978,12 +978,12 @@
             if str(npcID) not in crystalNPCIDPosDict:
                 continue
             posInfo = crystalNPCIDPosDict[str(npcID)]
-            rebornPosList.append([posInfo[0], posInfo[1], 3])
+            rebornPosList.append([posInfo[0], posInfo[1], 3, 6])
         
     if not rebornPosList:
         return
-    randPosX, randPosY, radius = random.choice(rebornPosList)
-    posPoint = GameMap.GetEmptyPlaceInArea(randPosX, randPosY, radius)
+    randPosX, randPosY, minDist, maxDist = random.choice(rebornPosList)
+    posPoint = GameMap.GetEmptyPlaceInAreaEx(randPosX, randPosY, minDist, maxDist)
     return posPoint.GetPosX(), posPoint.GetPosY()
 
 #def GetFBRobotRandomMovePos(curNPC):

--
Gitblit v1.8.0