From 12836f33fed29553af8633c39cdc2607973f100a Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 21 二月 2020 16:27:06 +0800
Subject: [PATCH] 8380 【主干】【后端】优化境界压制(改为大境界压制时伤害才为1)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 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 00e1774..81c0f04 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
@@ -2006,12 +2006,17 @@
aRealmLV, dRealmLV = GetPVERealmLVs(atkObj, defObj, atkObjType, defObjType) # 获取境界
if defObjType == IPY_GameWorld.gotNPC and ChConfig.IsGameBoss(defObj) and dRealmLV > aRealmLV:
- if atkObjType == IPY_GameWorld.gotPlayer:
- GameWorld.DebugLog("BossRealmHint%s-%s"%(dRealmLV, aRealmLV))
- PlayerControl.NotifyCode(atkObj, 'BossRealmHint', [dRealmLV])
-
- # 攻击高境界的BOSS 伤害固定为1
- return 1, ChConfig.Def_HurtType_Normal
+ aRealmIpyData = IpyGameDataPY.GetIpyGameDataNotLog("Realm", aRealmLV)
+ dRealmIpyData = IpyGameDataPY.GetIpyGameDataNotLog("Realm", dRealmLV)
+ aRealmLVLarge = aRealmIpyData.GetLvLarge() if aRealmIpyData else 0
+ dRealmLVLarge = dRealmIpyData.GetLvLarge() if dRealmIpyData else 0
+ if dRealmLVLarge > aRealmLVLarge:
+ if atkObjType == IPY_GameWorld.gotPlayer:
+ GameWorld.DebugLog("BossRealmHint%s-%s"%(dRealmLV, aRealmLV))
+ PlayerControl.NotifyCode(atkObj, 'BossRealmHint', [dRealmLVLarge])
+
+ # 攻击高境界的BOSS 伤害固定为1
+ return 1, ChConfig.Def_HurtType_Normal
atkType = GetBattleType(atkObj, curSkill)
happenState = happenState if happenState else SkillShell.GetHappenState(curSkill)
--
Gitblit v1.8.0