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 ++++--
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py | 8 ++++++--
2 files changed, 10 insertions(+), 4 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
##法宝激活个数
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py
index 9db66f8..8dc357f 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/SkillShell.py
@@ -2119,7 +2119,9 @@
# 重刷被动技能
PassiveBuffEffMng.GetPassiveEffManager().RegistPassiveEff(curPlayer)
# 重刷技能战力
- PlayerControl.PlayerControl(curPlayer).RefreshPlayerAttrState()
+ curControl = PlayerControl.PlayerControl(curPlayer)
+ curControl.RefreshAllSkill()
+ curControl.RefreshPlayerAttrState()
NotifyElementSkillInfo(curPlayer, mainSkillID, selectSkillID if updSelectSkillLV != activeSkillLV else 0)
return
@@ -2201,7 +2203,9 @@
# 重刷被动技能
PassiveBuffEffMng.GetPassiveEffManager().RegistPassiveEff(curPlayer)
# 重刷技能战力
- PlayerControl.PlayerControl(curPlayer).RefreshPlayerAttrState()
+ curControl = PlayerControl.PlayerControl(curPlayer)
+ curControl.RefreshAllSkill()
+ curControl.RefreshPlayerAttrState()
NotifyElementSkillInfo(curPlayer)
return
--
Gitblit v1.8.0