From a999dbe12739d00e67e05c4306abcce82ffc4615 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期六, 11 五月 2019 17:14:18 +0800
Subject: [PATCH] 3564 【BUG】【2.0】五行专精使用后没有显示战力提升特效

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py
index ed9c5e6..320e6d4 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py
@@ -7123,7 +7123,7 @@
         curMission = curPlayer.FindMission(questID)
     curMission.SetProperty(key, haveCnt)
     return
-def __GetBaseequipcnt(curPlayer, classLV, color, suiteIDList):
+def __GetBaseequipcnt(curPlayer, classLV, color, suiteIDList, needCnt=0):
     #classLV 为0代表任意阶
     haveCnt = 0
     equipMaxClasslv = IpyGameDataPY.GetFuncCfg('EquipMaxClasslv')
@@ -7144,6 +7144,8 @@
             if suiteIDList and curEquip.GetSuiteID() not in suiteIDList:
                 continue
             haveCnt += 1
+            if needCnt and haveCnt >= needCnt:
+                break
     return haveCnt
     
 ##判断符合条件的已穿基础装备数量
@@ -7155,7 +7157,7 @@
     color = GameWorld.ToIntDef(curActionNode.GetAttribute("color"), 0)
     suite = curActionNode.GetAttribute("suite")
     suiteIDList = eval(suite) if suite else []
-    haveCnt = __GetBaseequipcnt(curPlayer, classLV, color, suiteIDList)
+    haveCnt = __GetBaseequipcnt(curPlayer, classLV, color, suiteIDList, totalcnt)
     return haveCnt >= totalcnt
 
 ##法宝激活个数

--
Gitblit v1.8.0