hxp
2022-02-28 9c679ecc22d7c42ffedf6be43c5454378f7e2f24
5358 【bt6】【主干】【yn_1.0.1】跨服PK数值报错神兵生命转换为血盾
2个文件已修改
7 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_807.py 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py
@@ -2496,7 +2496,7 @@
    bounceHP = hurtValue * defObj_DamageBackRate / float(ChConfig.Def_MaxRateValue)
    bounceHP  = int(bounceHP + PassiveBuffEffMng.GetPassiveSkillValueByTriggerType(defObj, None, None, ChConfig.TriggerType_BounceHP))
    bounceHP  = int(bounceHP + PassiveBuffEffMng.GetValueByPassiveBuffTriggerType(defObj, None, None, ChConfig.TriggerType_BounceHP))
    if bounceHP == 0:
    if bounceHP <= 0:
        return
    
    bounceHP = bounceHP if bounceHP < GameObj.GetHP(atkObj) else GameObj.GetHP(atkObj) - 1
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_807.py
@@ -14,6 +14,7 @@
import GameWorld
import SkillCommon
import GameObj
import ChConfig
def CheckCanHappen(attacker, defender, passiveEffect, skillID, **skillkwargs):
    curSkill = GameWorld.GetGameData().GetSkillBySkillID(skillID)
@@ -39,8 +40,8 @@
    if hurtValue == 0:
        return False
    buff.SetValue(max(buffValue - hurtValue, 0))
    GameObj.SetBloodShiledHurt(attacker, max(hurtValue - buffValue, 0))
    buff.SetValue(min(ChConfig.Def_UpperLimit_DWord, max(buffValue - hurtValue, 0)))
    GameObj.SetBloodShiledHurt(attacker, min(ChConfig.Def_UpperLimit_DWord, max(hurtValue - buffValue, 0)))
    
    if buff.GetValue() == 0:
        buff.SetRemainTime(0)