From b0e88ac9edef42aa6fcc529bb31905ab76ff86a2 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期二, 16 四月 2019 16:30:20 +0800
Subject: [PATCH] 6516 【后端】【2.0】战斗公式增加系数
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_ResetAttrPoint.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_ResetAttrPoint.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_ResetAttrPoint.py
index 02829a2..baf0bc9 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_ResetAttrPoint.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_ResetAttrPoint.py
@@ -36,7 +36,7 @@
if not resetID and exData:
resetID = exData
resetPoint = curEff.GetEffectValue(1) * useCnt
- if not DoResetAttrPoint(curPlayer, resetID, resetPoint):
+ if not DoResetAttrPoint(curPlayer, resetID, resetPoint, curRoleItem.GetItemTypeID()):
return
#扣除物品
@@ -68,6 +68,8 @@
realResetPoint = curPoint
else:
realResetPoint = min(resetPoint, curPoint)
+ if not realResetPoint:
+ continue
resetPointTotal += realResetPoint
updPoint = max(curPoint - realResetPoint, 0)
PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_AddPointValue % resetID, updPoint)
--
Gitblit v1.8.0