hxp
2019-12-10 3efbd281d472248b62832b316ba45d823dabf913
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_4530.py
@@ -23,6 +23,15 @@
def CheckCanHappen(attacker, defender, passiveEffect, skillID, **skillkwargs):
    if not defender:
        return
    useSkill = skillkwargs.get("useSkill", None)
    if not useSkill:
        return False
    # 主动型技能才有效
    if useSkill.GetFuncType() not in [ChConfig.Def_SkillFuncType_FbSkill,
                                      ChConfig.Def_SkillFuncType_NormalAttack]:
        return False
    curSkill = GameWorld.GetGameData().GetSkillBySkillID(skillID)
    if not curSkill:
        return False