From 647ba45f846cbf063c3b37090adbbbbd7b5167e6 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 18 十月 2022 21:45:32 +0800
Subject: [PATCH] 9731 【越南】【主干】【BT7】转职业(翅膀转换逻辑调整为职业限制支持)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerChangeJob.py |   23 +++++++++++------------
 1 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerChangeJob.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerChangeJob.py
index bc28fcd..f130383 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerChangeJob.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerChangeJob.py
@@ -156,18 +156,6 @@
                     
             itemJobLimit = curItem.GetJobLimit()
             if not itemJobLimit:
-                
-                # 无职业限制的需要处理翅膀
-                if itemPlace == ShareDefine.retWing:
-                    curJobWingIDList = jobWingIDListInfo.get(curJob, [])
-                    tagJobWingIDList = jobWingIDListInfo.get(tagJob, [])
-                    if len(curJobWingIDList) != len(tagJobWingIDList):
-                        GameWorld.ErrLog("功能配置表转职业对应翅膀ID长度配置不一致! curJob=%s,tagJob=%s" % (curJob, tagJob), playerID)
-                        return
-                    if itemID in curJobWingIDList:
-                        tagJobItemID = tagJobWingIDList[curJobWingIDList.index(itemID)]
-                        replaceItemList.append([packType, curItem, tagJobItemID])
-                        
                 continue
             
             if itemJobLimit != curJob:
@@ -192,6 +180,17 @@
                     break
                 replaceItemList.append([packType, curItem, tagJobItemID])
                 
+            # 翅膀
+            elif itemPlace == ShareDefine.retWing:
+                curJobWingIDList = jobWingIDListInfo.get(curJob, [])
+                tagJobWingIDList = jobWingIDListInfo.get(tagJob, [])
+                if len(curJobWingIDList) != len(tagJobWingIDList):
+                    GameWorld.ErrLog("功能配置表转职业对应翅膀ID长度配置不一致! curJob=%s,tagJob=%s" % (curJob, tagJob), playerID)
+                    return
+                if itemID in curJobWingIDList:
+                    tagJobItemID = tagJobWingIDList[curJobWingIDList.index(itemID)]
+                    replaceItemList.append([packType, curItem, tagJobItemID])
+                    
             else:
                 GameWorld.ErrLog("转职业未知转换逻辑的物品ID! itemID=%s,tagJob=%s" % (itemID, tagJob), playerID)
                 

--
Gitblit v1.8.0