From 71ea04a0d2f445b3b3947175bacc6829a5996af9 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 25 三月 2019 21:26:48 +0800
Subject: [PATCH] 6385 【后端】【2.0】五行灵根开发(修复洗点报错 )

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/Item_ResetAttrPoint.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 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 89e4182..02829a2 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
@@ -30,10 +30,12 @@
 def BatchUseItem(curPlayer, curRoleItem, tick, useCnt, exData):
     curEff = curRoleItem.GetEffectByIndex(0)
     effectID = curEff.GetEffectID()
-    if effectID not in ChConfig.Def_Effect_ResetAttrPoint:
+    if effectID != ChConfig.Def_Effect_ResetAttrPoint:
         return
     resetID = curEff.GetEffectValue(0)
-    resetPoint = curEff.GetEffectValue(0) * useCnt
+    if not resetID and exData:
+        resetID = exData
+    resetPoint = curEff.GetEffectValue(1) * useCnt
     if not DoResetAttrPoint(curPlayer, resetID, resetPoint):
         return
     

--
Gitblit v1.8.0