| | |
| | | import ChNetSendPack
|
| | | import OperControlManager
|
| | | import GameObj
|
| | | import CrossPlayerData
|
| | | import AttackCommon
|
| | | #---------------------------------------------------------------------
|
| | |
|
| | |
| | | if curObj == None:
|
| | | # 避免配表错误导致报错
|
| | | return False
|
| | |
|
| | | if GameWorld.GetMap().GetMapID() == ChConfig.Def_FBMapID_GatherSoul and curObj.GetGameObjType() == IPY_GameWorld.gotNPC:
|
| | | if curSkill.GetSkillTypeID() != 23052:
|
| | | #GameWorld.DebugLog('聚魂副本玩家不能对怪物上buff curSkill=%s,buffOwner=%s'%(curSkill.GetSkillTypeID(),buffOwner.GetID()))
|
| | | return True
|
| | | #GameWorld.DebugLog('聚魂副本对怪物上buff curSkill=%s,buffOwner=%s'%(curSkill.GetSkillTypeID(),buffOwner.GetID()))
|
| | | |
| | | |
| | | if curObj.GetGameObjType() == IPY_GameWorld.gotNPC and curObj.GetIsBoss() not in ChConfig.Def_SkillAttack_NPCIsBoss \
|
| | | and SkillCommon.GetSkillBattleType(curSkill) == ChConfig.Def_BattleRelationType_CommNoBoss and SkillShell.IsNPCSkillResist(curObj):
|
| | | # 释放后 对指定BOSS无效的技能
|
| | |
| | | for i in range(len(plusValueList)):
|
| | | plusValueList[i] = min(plusValueList[i], ChConfig.Def_UpperLimit_DWord)
|
| | |
|
| | | # 向跨服发送数据
|
| | | CrossPlayerData.SendMergeData_Buff(curObj, curSkillID, plusValueList)
|
| | | |
| | | # buff层级
|
| | | layerMaxCnt = 0
|
| | | layerCalc = 0
|