| | |
| | | continue
|
| | | passiveEff = PassiveBuffEffMng.GetPassiveEffManager().InitObjPassiveEff(curObj)
|
| | | passiveEff.AddBuffInfoByEffect(curEffect, skillID, onwerID, onwerType)
|
| | |
|
| | | |
| | | #添加BUFF后的特殊处理
|
| | | DoAddBuffOver(curObj, curSkill, addBuff, buffOwner, tick)
|
| | |
|
| | | # 通知客户端
|
| | | #buffState.Sync_AddBuffEx()
|
| | | if isNotify:
|
| | | PYSync_RefreshBuff(curObj, addBuff, SkillCommon.GetBuffType(curSkill), notifyAll=False, owner = buffOwner)
|
| | | |
| | | #添加BUFF后的特殊处理
|
| | | DoAddBuffOver(curObj, curSkill, addBuff, buffOwner, tick)
|
| | |
|
| | | #检查是否属于刷新BUFF
|
| | | #===========================================================================
|
| | |
| | | sendPack = ChNetSendPack.tagObjAddBuff()
|
| | | if not curBuff:
|
| | | return
|
| | | if not hasattr(curBuff, "GetSkill"):
|
| | | return
|
| | | curSkill = curBuff.GetSkill()
|
| | | if not curSkill or not hasattr(curSkill, "GetSkillID"):
|
| | | return
|
| | | skillID = curSkill.GetSkillID()
|
| | | if GameObj.GetHP(gameObj) <= 0 or AttackCommon.GetIsDead(gameObj):
|
| | | return
|
| | | sendPack.ObjType = gameObj.GetGameObjType()
|
| | | sendPack.ObjID = gameObj.GetID();
|
| | | sendPack.SkillID = curBuff.GetSkill().GetSkillID();
|
| | | sendPack.SkillID = skillID;
|
| | | sendPack.LastTime = curBuff.GetRemainTime();
|
| | | sendPack.BuffType = buffType;
|
| | | sendPack.Value = curBuff.GetValue();
|