From e6a20b55f44d8176be3d0d9afebcac7be406c079 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 23 五月 2022 17:00:36 +0800
Subject: [PATCH] 9415 【BT】【后端】古神战场(阵营buff对机器人有效; 修复黑夜降临掉血buff击杀对方时地图报错bug)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossBattlefield.py | 7 +++++++
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/BuffProcess_1089.py | 2 ++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossBattlefield.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossBattlefield.py
index d0b1028..7efa827 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossBattlefield.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_CrossBattlefield.py
@@ -2012,6 +2012,13 @@
if not player:
continue
SkillShell.__DoLogic_AddBuff(curPlayer, player, buffSkill, False, tick, addForce=True)
+
+ for robotID in factionObj.robotObjIDList:
+ robotNPC = GameWorld.GetObj(robotID, IPY_GameWorld.gotNPC)
+ if not robotNPC:
+ continue
+ SkillShell.__DoLogic_AddBuff(curPlayer, robotNPC, buffSkill, False, tick, addForce=True)
+
return
def __OnCollectOK_EventWall(curPlayer, curNPC, tick):
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/BuffProcess_1089.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/BuffProcess_1089.py
index 5d2c846..f5433d2 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/BuffProcess_1089.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/BuffProcess_1089.py
@@ -55,6 +55,8 @@
return
if buffOwner.GetGameObjType() != IPY_GameWorld.gotPlayer:
return
+ if not defender or not defender.GetID() or GameObj.GetHP(defender) <= 0:
+ return
# 执行次数。 当汲灵对目标造成3次伤害时,可降低目标20%的防御
curBuff.SetValue1(curBuff.GetValue1() + 1)
tick = GameWorld.GetGameWorld().GetTick()
--
Gitblit v1.8.0