8384 【主干】【后端】优化控制buff类对boss的影响
| | |
| | | ChConfig.TriggerType_Buff_MustBeHit):
|
| | | # 技能对指定BOSS无效果的返回MISS
|
| | | if defObjType == IPY_GameWorld.gotNPC and defObj.GetIsBoss() not in ChConfig.Def_SkillAttack_NPCIsBoss \
|
| | | and SkillCommon.GetSkillBattleType(curSkill) == ChConfig.Def_BattleRelationType_CommNoBoss:
|
| | | and SkillCommon.GetSkillBattleType(curSkill) == ChConfig.Def_BattleRelationType_CommNoBoss and SkillShell.IsNPCSkillResist(defObj):
|
| | | return 0, ChConfig.Def_HurtType_Miss
|
| | |
|
| | | #攻击方处于嘲讽,防守方处于免疫嘲讽者攻击则miss
|
| | |
| | | #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 SkillCommon.GetSkillBattleType(curSkill) == ChConfig.Def_BattleRelationType_CommNoBoss and SkillShell.IsNPCSkillResist(curObj):
|
| | | # 释放后 对指定BOSS无效的技能
|
| | | return True
|
| | |
|
| | |
| | |
|
| | | # 技能对指定BOSS无效果-----------------
|
| | | if curObjType == IPY_GameWorld.gotNPC and curObj.GetIsBoss() not in ChConfig.Def_SkillAttack_NPCIsBoss:
|
| | | if curSkill and GetSkillBattleType(curSkill) == ChConfig.Def_BattleRelationType_CommNoBoss:
|
| | | if curSkill and GetSkillBattleType(curSkill) == ChConfig.Def_BattleRelationType_CommNoBoss and SkillShell.IsNPCSkillResist(curObj):
|
| | | return
|
| | |
|
| | | notifyLostValue = lostValue
|
| | |
| | |
|
| | | return True
|
| | |
|
| | | def IsNPCSkillResist(curNPC):
|
| | | ## NPC是否技能抵抗,对应技能表中伤害类型HurtType为3的技能,即对boss无效的技能
|
| | | |
| | | if curNPC.GetCurAction() == IPY_GameWorld.laNPCSkillWarning:
|
| | | #GameWorld.DebugLog("预警状态下默认抵抗")
|
| | | return True
|
| | | |
| | | bossIpyData = IpyGameDataPY.GetIpyGameDataNotLog("BOSSInfo", curNPC.GetNPCID())
|
| | | if bossIpyData and bossIpyData.GetSkillResist():
|
| | | return True
|
| | | |
| | | return False
|
| | |
|
| | | ##是否召唤兽对主人使用技能
|
| | | # @param curNPC NPC实例
|