From ffdd0d870698ef790cea59b8491ad23f644ae37f Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 27 十一月 2023 19:19:15 +0800
Subject: [PATCH] 1111 【主干】【港台】【砍树】【BT】【后端】修复boss境界压制时玩家反弹伤害可以对boss造成反弹伤害的bug
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 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 9fe28e8..81e0310 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
@@ -2513,6 +2513,18 @@
if defObjType != IPY_GameWorld.gotPlayer:
return
+ #boss境界压制不反弹
+ atkObjType = atkObj.GetGameObjType()
+ aRealmLV, dRealmLV = GetPVERealmLVs(atkObj, defObj, atkObjType, defObjType) # 获取境界
+ if atkObjType == IPY_GameWorld.gotNPC and ChConfig.IsGameBoss(atkObj) and aRealmLV > dRealmLV:
+ 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 aRealmLVLarge > dRealmLVLarge:
+ #GameWorld.DebugLog("boss大境界压制玩家,不反弹: aRealmLV=%s,dRealmLV=%s,aRealmLVLarge=%s,dRealmLVLarge=%s" % (aRealmLV, dRealmLV, aRealmLVLarge, dRealmLVLarge))
+ return
+
if GameObj.GetHP(atkObj) == 1:
return
--
Gitblit v1.8.0