| | |
| | | # 计算攻击伤害
|
| | | # 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
|
| | |
| | | #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
|
| | | |