From f0b76f3416d2122ee7aea375bd3867d59523c481 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 04 三月 2025 17:45:48 +0800
Subject: [PATCH] 10263 【越南】【英文】【BT】【砍树】【GM】后端支持NPC仿真实玩家战斗和快速战斗(修复镜像PK地图重复请求进入副本引起的报错;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/MirrorAttack.py | 5 ++++-
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py | 1 -
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/MirrorAttack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/MirrorAttack.py
index 2cec016..8788783 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/MirrorAttack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/MirrorAttack.py
@@ -587,7 +587,10 @@
playerID = curPlayer.GetPlayerID()
if playerID not in PyGameData.g_playerReqEnterFBEx:
return
- msgInfo, packDataDict = PyGameData.g_playerReqEnterFBEx[playerID]
+ reqInfo = PyGameData.g_playerReqEnterFBEx[playerID]
+ if not reqInfo or len(reqInfo) != 2:
+ return
+ msgInfo, packDataDict = reqInfo
OnMirrorBattleInit(msgInfo, packDataDict, curPlayer)
return
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
index 429d8f8..28366ae 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
@@ -1863,7 +1863,6 @@
def PlayerEnterFB(curPlayer, mapID, lineID, posX=0, posY=0, reqInfoEx=None):
mapID = FBCommon.GetRecordMapID(mapID)
playerID = curPlayer.GetPlayerID()
- PyGameData.g_playerReqEnterFBEx[playerID] = reqInfoEx
GameWorld.Log("玩家请求进入副本! mapID=%s,lineID=%s,posX=%s,posY=%s,reqInfoEx=%s" % (mapID, lineID, posX, posY, reqInfoEx), playerID)
#进入副本通用检查
--
Gitblit v1.8.0