From bfb629a921f38293df43fa52c4a8fc9c4f02641b Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 21 二月 2020 17:27:55 +0800 Subject: [PATCH] 8380 【主干】【后端】优化境界压制(还原NPC境界压制技能对相对高境界玩家无效逻辑) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py | 14 ++++++-------- 1 files changed, 6 insertions(+), 8 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py index 81c0f04..b6f3bb4 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py @@ -2048,14 +2048,12 @@ #当攻击方为NPC,防守方为玩家时,计算压制等级 及 压制战力 if atkObjType == IPY_GameWorld.gotNPC and defObjType == IPY_GameWorld.gotPlayer: - #======================================================================= - # if curSkill and curSkill.GetFuncType() == ChConfig.Def_SkillFuncType_RealmSuppress: - # # 境界压制技能不对高等级境界玩家产生攻击 - # aRealmLV, dRealmLV = GetPVERealmLVs(atkObj, defObj, atkObjType, defObjType) - # if aRealmLV <= dRealmLV: - # return 0, ChConfig.Def_HurtType_Immune # 免疫 - #======================================================================= - + if curSkill and curSkill.GetFuncType() == ChConfig.Def_SkillFuncType_RealmSuppress: + # 境界压制技能不对高等级境界玩家产生攻击 + aRealmLV, dRealmLV = GetPVERealmLVs(atkObj, defObj, atkObjType, defObjType) + if aRealmLV <= dRealmLV: + return 0, ChConfig.Def_HurtType_Immune # 免疫 + atkIsBoss = 1 if ChConfig.IsGameBoss(atkObj) else 0 if NPCCommon.GetIsLVSuppress(atkObj): suppressLV = max(0, aLV - dLV) -- Gitblit v1.8.0