From d0e8b607414cb9bb017beab4394e1d3da82a59cd Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期三, 20 三月 2019 11:33:43 +0800
Subject: [PATCH] 6381 【后端】【2.0】任务接口开发

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/ClearFruitAttr.py |    4 +++-
 1 files changed, 3 insertions(+), 1 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..d90846e 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:
@@ -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