6603 【后端】【2.0】增加新版的sp和被动技能 - 神火定身
| | |
| | | # 此处不能传技能curSkill 屏蔽被动触发被动限制
|
| | | # 暂且特殊处理控制类buff才触发
|
| | | if SkillCommon.GetBuffType(curSkill) == IPY_GameWorld.bfActionBuff:
|
| | | PassiveBuffEffMng.GetValueByPassiveBuffTriggerType(curObj, buffOwner, curSkill, ChConfig.TriggerType_AddBuffOver)
|
| | | PassiveBuffEffMng.GetValueByPassiveBuffTriggerType(curObj, buffOwner, curSkill, ChConfig.TriggerType_AddBuffOver, False)
|
| | |
|
| | | #是否是持续性技能
|
| | | isLstSkill = curSkill.GetSkillType() in ChConfig.Def_LstBuff_List
|
| | |
| | |
|
| | | # buff 影响的(攻击)行为值
|
| | | # 返回数值
|
| | | def GetValueByPassiveBuffTriggerType(attacker, defender, useSkill, triggerType):
|
| | | def GetValueByPassiveBuffTriggerType(attacker, defender, useSkill, triggerType, isStopPassiveSkill=True):
|
| | | attacker = FindRealAttacker(attacker)
|
| | | if not attacker:
|
| | | return 0
|
| | |
|
| | | stopPassiveSkill = False # 被动技能不能再触发被动技能,但可以触发天赋技能
|
| | | if useSkill and SkillCommon.isPassiveSkill(useSkill):
|
| | | if useSkill and SkillCommon.isPassiveSkill(useSkill) and isStopPassiveSkill:
|
| | | #GameWorld.DebugLog("被动技能不能再次触发被动技能")
|
| | | #return 0
|
| | | if not PassPassiveLimit(useSkill):
|