From 515678509028eddef1b5ea2fb08a8faa2e730fc1 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 23 二月 2021 10:33:45 +0800
Subject: [PATCH] 4906 【BT】跨服地图报错查看(防范触发嗜天风暴buff可能报错);
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py | 2 +-
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/BuffProcess_1314.py | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py
index d038edc..9c6ac87 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/BuffSkill.py
@@ -1004,7 +1004,7 @@
sendPack = ChNetSendPack.tagObjAddBuff()
if not curBuff:
return
- if not hasattr(curBuff, "GetSkill") or not curBuff.GetSkill():
+ if GameObj.GetHP(gameObj) <= 0 or AttackCommon.GetIsDead(gameObj):
return
sendPack.ObjType = gameObj.GetGameObjType()
sendPack.ObjID = gameObj.GetID();
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/BuffProcess_1314.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/BuffProcess_1314.py
index 217536f..78c605d 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/BuffProcess_1314.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/BuffProcess_1314.py
@@ -21,6 +21,7 @@
import SkillShell
import GameObj
import IPY_GameWorld
+import AttackCommon
def ProcessBuff(tagObj, curBuff, curEffect, processBuffTick, tick):
Attack(tagObj, curBuff, tick)
@@ -76,7 +77,7 @@
BaseAttack.SwordStormAttack(tagObj, srcPosX, srcPosY, curSkill, skillPer,
skillEnhance, skillMatrix, tick)
PassiveBuffEffMng.OnPassiveBuffTrigger(tagObj, None, curSkill, ChConfig.TriggerType_Buff_AttackSubLayer, tick)
- if GameObj.GetHP(tagObj) > 0 and curBuff and hasattr(curBuff, "GetValue") and hasattr(curBuff, "SetRemainTime"):
+ if GameObj.GetHP(tagObj) > 0 and not AttackCommon.GetIsDead(tagObj):
if tagObj.GetDictByKey(ChConfig.Def_PlayerKey_1314HurtCount):
# 需要时间配合,不然会导致伤害还没计算完毕 buff提前消失了
curBuff.SetValue(curBuff.GetValue() + 1)
--
Gitblit v1.8.0