From a2b6496da2384f6ad3adb23a75e2776cb7c95862 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 16 三月 2020 18:39:58 +0800
Subject: [PATCH] 8401 【后端】BOSS复活修改(boss信息表无复活时间配置的boss不处理复活检查逻辑,防止和关联的活动控制复活状态冲突)
---
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