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/GameBuffs/BuffProcess_1314.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

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