From bb05f893a8a6e0275931b05b5f033663651f5638 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 07 八月 2019 15:57:57 +0800
Subject: [PATCH] 1 【后端】【主干】优化灵器合成(非本职业无法合成)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_ItemCompound.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_ItemCompound.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_ItemCompound.py
index 8e71809..b23d775 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_ItemCompound.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_ItemCompound.py
@@ -93,6 +93,11 @@
         GameWorld.ErrLog("不存在该合成物品! makeItemID=%s" % makeItemID)
         return
     
+    if not ItemCommon.CheckJob(curPlayer, makeItemData):
+        if makeItemData.GetType() in [ChConfig.Def_ItemType_retPeerlessWeapon, ChConfig.Def_ItemType_retPeerlessWeapon2]:
+            PlayerControl.NotifyCode(curPlayer, "ItemCompoundJoblimit")
+            return
+        
     packType = ChConfig.GetItemPackType(makeItemData.GetType(), IPY_GameWorld.rptItem)
     GameWorld.DebugLog("makeItemID=%s,packType=%s" % (makeItemID, packType), playerID)
     

--
Gitblit v1.8.0