From d3141684a2efd63ec4d70a6d26cd771fe2b257b8 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 20 十一月 2019 16:39:56 +0800 Subject: [PATCH] 8341 【恺英】【后端】强化进化系统优化(强化等级上限修改为关联进化等级,去除星级关联,进化修改) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4053.py | 28 ++++++++++++++++++++++++---- 1 files changed, 24 insertions(+), 4 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4053.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4053.py index fcee521..909b4eb 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4053.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4053.py @@ -1,7 +1,7 @@ #!/usr/bin/python # -*- coding: GBK -*- # -# 对目标的buff层级达到第几层触发技能 +# 对目标的buff层级达到第几层触发技能, 附加效果指定目标为最近一次攻击的玩家 # # @author: Alee # @date 2018-1-9 下午09:39:37 @@ -10,10 +10,30 @@ # @note: # #--------------------------------------------------------------------- - +import SkillShell +import GameWorld +import ChConfig +import IPY_GameWorld def CheckCanHappen(attacker, defender, effect, curSkill): + if defender.GetDictByKey(ChConfig.Def_PlayerKey_AddBuffLayer) != effect.GetEffectValue(0): + return False - return defender.GetDictByKey("addBuffLayer") == effect.GetEffectValue(0) + if effect.GetEffectValue(1): + # 走到此逻辑 中buff和释放buff是同一个人 + #附加效果指定目标为最近一次攻击的玩家 + playerID = attacker.GetDictByKey(ChConfig.Def_PlayerKey_LastAttackerObjID) + if not playerID: + return False + curObj = GameWorld.GetObj(playerID, IPY_GameWorld.gotPlayer) + + #人物需要判断是否为空 + if not curObj: + return False + if curObj.IsEmpty(): + return False - + #强行释放技能 + SkillShell.UsePassiveTriggerSkill(attacker, curSkill, curObj, GameWorld.GetGameWorld().GetTick(), True) + return False + return True \ No newline at end of file -- Gitblit v1.8.0