From 8748bbbb0bcf027f0e77cc203aa60b2d68ddcebc Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期四, 06 六月 2019 10:26:29 +0800
Subject: [PATCH] 6603 【后端】【2.0】增加新版的sp和被动技能

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/ClearFruitAttr.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/ClearFruitAttr.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/ClearFruitAttr.py
index ad26787..455a187 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/ClearFruitAttr.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/ClearFruitAttr.py
@@ -63,6 +63,8 @@
         elif limitType == PlayerAttrFruit.Def_LimitType_Attr:
             PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_AttrFruitAddValue % itemID, 0)
         
+        curPlayer.SetDict(ChConfig.Def_PlayerKey_FruitFightPowerEx % (funcIndex), 0)
+        
         itemData = GameWorld.GetGameData().GetItemByTypeID(itemID)
         # 重置该物品所加的属性值
         if itemData:
@@ -77,7 +79,7 @@
                 curPlayer.SetDict(attrKey, 0)
                 
             if isGiveFruitItem:
-                giveFruitItemList.append([itemID, ipyData.GetMaxUseCnt()])
+                giveFruitItemList.append([itemID, PlayerAttrFruit.GetMaxEatCnt(curPlayer, itemID)])
                 
     PlayerAttrFruit.Sync_AttrFruitEatCnt(curPlayer)
     
@@ -85,7 +87,7 @@
     PlayerControl.PlayerControl(curPlayer).ReCalcAllState()
     
     for itemID, itemCount in giveFruitItemList:
-        if not ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, True, [IPY_GameWorld.rptItem]):
+        if not ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, 0, [IPY_GameWorld.rptItem]):
             break
     GameWorld.DebugAnswer(curPlayer, "OK!")
     return

--
Gitblit v1.8.0