| | |
| | |
|
| | | def CheckCanHappen(attacker, defender, passiveEffect, skillID, **skillkwargs):
|
| | | useSkill = skillkwargs.get("useSkill", None)
|
| | | skillLimist = passiveEffect.GetEffectValue(2)
|
| | | # 主动型技能才有效
|
| | | if passiveEffect.GetEffectValue(2) and useSkill:
|
| | | if useSkill.GetFuncType() not in [ChConfig.Def_SkillFuncType_FbSkill,
|
| | | ChConfig.Def_SkillFuncType_NormalAttack]:
|
| | | return False
|
| | | if skillLimist and useSkill:
|
| | | if skillLimist == 1:
|
| | | if useSkill.GetFuncType() not in [ChConfig.Def_SkillFuncType_FbSkill,
|
| | | ChConfig.Def_SkillFuncType_NormalAttack]:
|
| | | return False
|
| | | elif skillLimist == 2:
|
| | | if useSkill.GetFuncType() != ChConfig.Def_SkillFuncType_NormalAttack:
|
| | | return False
|
| | |
|
| | | if passiveEffect.GetEffectValue(1):
|
| | | # 只针对第一目标
|