5698 子 【开发】【1.4.100】增加字体斩杀 / 【后端】【1.4.100】增加斩杀字体
| | |
| | | # 斩杀,濒死等情况的处理
|
| | | if PassiveBuffEffMng.GetPassiveSkillValueByTriggerType(atkObj, defObj, curSkill, ChConfig.TriggerType_AttackKill):
|
| | | # նɱ
|
| | | hurtType = ChConfig.Def_HurtType_Zhansha
|
| | | hurtValue = GameObj.GetHP(defObj)
|
| | | #伤害结构体
|
| | | resultHurtType.HurtHP = hurtValue
|
| | |
| | |
|
| | | if GameObj.GetHP(defender) <= 0:
|
| | | if hurtList[1] == IPY_GameWorld.gotPlayer:
|
| | | if hurtList[2] == ChConfig.Def_HurtType_Zhansha:
|
| | | defender.SetDict("zhansha", 1)
|
| | | # 濒死状态触发技能, 不能在GetHurtHP内部触发技能,否则会导致原技能的伤血列表异常
|
| | | PassiveBuffEffMng.OnPassiveSkillTrigger(defender, attacker, None, ChConfig.TriggerType_WillDead, tick)
|
| | | PassiveBuffEffMng.OnPassiveBuffTrigger(defender, attacker, None, ChConfig.TriggerType_WillDead, tick)
|
| | | if hurtList[2] == ChConfig.Def_HurtType_Zhansha:
|
| | | defender.SetDict("zhansha", 0)
|
| | | continue
|
| | |
|
| | | if usePassiveSkillResult:
|
| | |
| | | Def_HurtType_Miss, # 闪避 9
|
| | | Def_HurtType_Immune, # 免疫 10
|
| | | Def_HurtType_RealmSupress, # 境界压制 11
|
| | | ) = range(1, 12)
|
| | | Def_HurtType_Zhansha, # նɱ 12
|
| | | ) = range(1, 13)
|
| | | #Def_HurtType_SuckBlood, # 吸血
|
| | |
|
| | | (
|
| | |
| | | # 当前已经被处理为死亡,那么就不触发
|
| | | return False
|
| | |
|
| | | if attacker.GetDictByKey("zhansha") and passiveEffect.GetEffectValue(0):
|
| | | # 斩杀不触发的标志
|
| | | return False
|
| | | |
| | | attacker.SetHP(1)
|
| | |
|
| | | return False
|
| | |
| | | # 当前已经被处理为死亡,那么就不触发
|
| | | return False
|
| | |
|
| | | if attacker.GetDictByKey("zhansha") and effect.GetEffectValue(2):
|
| | | # 斩杀不触发的标志
|
| | | return False
|
| | | |
| | | result = GameWorld.CanHappen(effect.GetEffectValue(0))
|
| | | if result:
|
| | | GameObj.SetHP(attacker, 1) # 为了避免生命为0时,屏蔽过多逻辑
|