| | |
| | | angerOverflow = 0 # 怒气溢出值
|
| | |
|
| | | mustHit = False # 是否必命中
|
| | | if isAngerSkill:
|
| | | if not isTurnNormalSkill: # 仅普攻判断是否闪避
|
| | | mustHit = True
|
| | | |
| | | if isAngerSkill:
|
| | | curXP = atkObj.GetXP()
|
| | | angerOverflow = max(atkObj.GetXP() - IpyGameDataPY.GetFuncCfg("AngerXP", 2), 0)
|
| | | GameWorld.DebugLog("XP必命中! curXP=%s,angerOverflow=%s" % (curXP, angerOverflow))
|
| | | GameWorld.DebugLog("怒技攻击! curXP=%s,angerOverflow=%s" % (curXP, angerOverflow))
|
| | |
|
| | | #命中公式 攻击方类型不同,公式不同
|
| | | if isTurnNormalSkill and not mustHit and not defObj.IsInControlledHard():
|
| | | if not mustHit and not curSkill.GetEffectByID(ChConfig.SkillEff_MustHit) and not defObj.IsInControlledHard():
|
| | | aMissRateDef = atkObj.GetBatAttrValue(ChConfig.AttrID_MissRateDef) #atkObj.GetHit() # 抗闪避率 - 命中
|
| | | dMissRate = defObj.GetBatAttrValue(ChConfig.AttrID_MissRate) # 闪避率
|
| | | missNum = curSkill.GetTagMissNum(defID)
|