hch
2019-09-22 325cdd5e711885f78c8c6e54800af9884139a23a
0312 翻滚有0.5秒闪避
2个文件已修改
15 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_9.py 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py
@@ -1977,11 +1977,9 @@
# 计算攻击伤害
# maxHurt参数用于模拟计算最大伤害,防范客户端攻击伤害过高
def CalcHurtHP(atkObj, defObj, curSkill, atkSkillValue, atkSkillPer, tick, happenState=None, **atkwargs):
    #===========================================================================
    # # 翻滚闪避特殊处理
    # if tick - defObj.GetDictByKey(ChConfig.Def_PlayerKey_SomersaultTime) < 500:
    #    return 0, ChConfig.Def_HurtType_Miss
    #===========================================================================
    # 翻滚闪避特殊处理
    if tick - defObj.GetDictByKey(ChConfig.Def_PlayerKey_SomersaultTime) < 500:
        return 0, ChConfig.Def_HurtType_Miss
    
    summonAtkPer = 1    # 召唤继承提高基础攻击力,取表
    summonAtkObj = atkwargs.get('orgAtkObj', None) if atkwargs.get('orgAtkObj', None) else atkObj
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_9.py
@@ -65,9 +65,8 @@
    #GameWorld.DebugLog("-----技能冲锋模板9 %s %s"%([attacker.GetPosX(), attacker.GetPosY()], [destX, destY]))
    attacker.ChangePos(destX, destY)
    #===========================================================================
    # if curSkill.GetSkillID() == ChConfig.Def_SkillID_Somersault:
    #    attacker.SetDict(ChConfig.Def_PlayerKey_SomersaultTime, tick)
    #===========================================================================
    if curSkill.GetSkillID() == ChConfig.Def_SkillID_Somersault:
        attacker.SetDict(ChConfig.Def_PlayerKey_SomersaultTime, tick)
    return result