| | |
| | | if curObj == None:
|
| | | # 避免配表错误导致报错
|
| | | return False
|
| | | if GameWorld.GetMap().GetMapID() == ChConfig.Def_FBMapID_GatherSoul and buffOwner \
|
| | | and buffOwner.GetGameObjType() == IPY_GameWorld.gotPlayer and curObj.GetGameObjType() == IPY_GameWorld.gotNPC:
|
| | | #GameWorld.DebugLog('聚魂副本玩家不能对怪物上buff')
|
| | | return True
|
| | | |
| | | if curObj.GetGameObjType() == IPY_GameWorld.gotNPC and curObj.GetIsBoss() not in ChConfig.Def_SkillAttack_NPCIsBoss \
|
| | | and SkillCommon.GetSkillBattleType(curSkill) == ChConfig.Def_BattleRelationType_CommNoBoss:
|
| | | # 释放后 对指定BOSS无效的技能
|
| | |
| | |
|
| | | #是否需要通知客户端
|
| | | isNotify = True if curSkill.GetClientEffectType() != 0 else False
|
| | | addBuff = buffState.AddBuff(skillID, tick, False)
|
| | | # 增加第四个参数是否立即广播
|
| | | addBuff = buffState.AddBuff(skillID, tick, isNotify, False)
|
| | | buffIndex = buffState.GetBuffCount() # buff在管理器中的索引
|
| | | if updProcessInterval > 0:
|
| | | # 继承上一个buff的循环记录
|
| | |
| | |
|
| | | # 通知客户端
|
| | | #buffState.Sync_AddBuffEx()
|
| | | PYSync_RefreshBuff(curObj, addBuff, SkillCommon.GetBuffType(curSkill), notifyAll=False)
|
| | | if isNotify:
|
| | | PYSync_RefreshBuff(curObj, addBuff, SkillCommon.GetBuffType(curSkill), notifyAll=False)
|
| | |
|
| | | #检查是否属于刷新BUFF
|
| | | #===========================================================================
|