From c06d47322d2892a440dc11b94f06950da762e5bd Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期五, 21 六月 2019 19:41:43 +0800
Subject: [PATCH] 7413 宗门试炼评级通知

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py |   19 +++++--------------
 1 files changed, 5 insertions(+), 14 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
index ae4b74e..6cb5ca9 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
@@ -1034,8 +1034,8 @@
     #切地图要清除的buff
     __CheckClearBuffOnMapChange(curPlayer, tick)
             
-    #上线和切地图加有限无敌Buff
-    if curPlayer.GetLV() > 50:
+    if GameWorld.GetMap().GetMapFBType() != IPY_GameWorld.fbtNull:
+        #副本地图上线切换才加无敌buff
         SkillCommon.AddBuffBySkillType_NoRefurbish(curPlayer, ChConfig.Def_SkillID_LimitSuperBuff, tick)
             
     #刷新玩家的视野
@@ -1267,15 +1267,6 @@
     #初始化神兽装备背包
     curPack = curPlayer.GetItemManager().GetPack(ShareDefine.rptDogzEquip)
     curPack.SetCount(ChConfig.Def_PackCnt_DogzEquip)
-    curPack.Sync_PackCanUseCount()
-    
-    #初始化诛仙物品背包
-    curPack = curPlayer.GetItemManager().GetPack(ShareDefine.rptZhuXianItem)
-    curPack.SetCount(ChConfig.Def_PackCnt_ZhuXianItem)
-    curPack.Sync_PackCanUseCount()
-    #初始化诛仙装备背包
-    curPack = curPlayer.GetItemManager().GetPack(ShareDefine.rptZhuXianEquip)
-    curPack.SetCount(ChConfig.Def_PackCnt_ZhuXianEquip)
     curPack.Sync_PackCanUseCount()
     
     #初始化临时交换背包
@@ -1745,8 +1736,8 @@
         delIndex = -1
         expireTime = 0
         for itemID in needItemIDList:
-            hasEnough, itemIndexList = ItemCommon.GetItem_FromPack_ByID(itemID, itemPack, 1)
-            if not hasEnough:
+            hasEnough, itemIndexList = ItemCommon.GetItem_FromPack_ByID(itemID, itemPack, 10)
+            if not itemIndexList:
                 #GameWorld.DebugLog("重置加点 item(%s) isn't enough" % (needItemID))
                 continue
             
@@ -1759,7 +1750,7 @@
                     if remainingTime <= 0:
                         #过期
                         continue
-                    if remainingTime < expireTime:
+                    if not expireTime or remainingTime < expireTime:
                         expireTime = remainingTime
                         delIndex = itemIndex
                 else:

--
Gitblit v1.8.0