4906 【BT】跨服地图报错查看(防范触发嗜天风暴buff可能报错);
| | |
| | | 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();
|
| | |
| | | import SkillShell
|
| | | import GameObj
|
| | | import IPY_GameWorld
|
| | | import AttackCommon
|
| | |
|
| | | def ProcessBuff(tagObj, curBuff, curEffect, processBuffTick, tick):
|
| | | Attack(tagObj, curBuff, tick)
|
| | |
| | | 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)
|