From b965081066ea579c45c73f08cd9cd61bc157ac9f Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 09 五月 2019 11:15:45 +0800
Subject: [PATCH] 6459 【后端】【2.0】缥缈仙域开发单(防范跨服妖王关闭线路时导致的报错)

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

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipStone.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipStone.py
index 9c2907d..8717ca8 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipStone.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipStone.py
@@ -30,6 +30,7 @@
 import PlayerSuccess
 import PlayerWeekParty
 import ShareDefine
+import EventShell
 #import EquipZhuXian
 
 g_stoneCanPlaceList = [] #可镶嵌的位置
@@ -144,7 +145,7 @@
     itemPack = curPlayer.GetItemManager().GetPack(stonePackType)
     curStone = itemPack.GetAt(stoneIndex)
     
-    if not ItemCommon.CheckItemCanUse(curStone):
+    if not ItemCommon.CheckItemCanUse(curStone) or ItemControler.GetIsAuctionItem(curStone):
         GameWorld.Log("目标宝石为空或不可用,无法镶嵌!", playerID)
         return
     
@@ -191,6 +192,8 @@
     Sycn_StoneHoleInfo(curPlayer, [equipPackIndex])
     #成就
     DoStoneSuccess(curPlayer)
+    
+    EventShell.EventRespons_InlayStone(curPlayer)
     return
 
 def DoStoneSuccess(curPlayer):
@@ -285,12 +288,10 @@
 def GetTotalStoneLV(curPlayer):
     ##宝石总等级
     totalStoneLV = 0
+    equipIndexList = GetAllStoneEquipIndexList()
     holeIndexList = GetAllEquipPlaceHoleIndex()
     gameData = GameWorld.GetGameData()
-    playerEquip = curPlayer.GetItemManager().GetPack(IPY_GameWorld.rptEquip)
-    for equipIndex in xrange(playerEquip.GetCount()):
-        if equipIndex not in ShareDefine.RoleEquipType :
-            continue
+    for equipIndex in equipIndexList:
         for holeIndex in holeIndexList:
             curGemID = GetEquipIndexStoneIDAndIsBand(curPlayer, equipIndex, holeIndex)[0]
             if curGemID == 0:

--
Gitblit v1.8.0