From b63f2f2458257e9ef4ab67d0a0748fd5ec2948ae Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 30 十月 2019 17:26:40 +0800
Subject: [PATCH] 8318 【恺英】老服创角限制优化
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_4526.py | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_4526.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_4526.py
index 5f9aff7..8ff8f17 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_4526.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_4526.py
@@ -19,12 +19,17 @@
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):
if AttackCommon.GetFirstDefenderID(attacker) != defender.GetID():
return False
--
Gitblit v1.8.0