860312 添加防范持续掉血如果血量已经为0不再触发
不死技能和buff效果,如果玩家当前为真实死亡则不再触发
| | |
| | |
|
| | | notifyLostValue = lostValue
|
| | | curObjHP_BeforeAttack = GameObj.GetHP(curObj)
|
| | | if curObjHP_BeforeAttack == 0:
|
| | | # 没有血量不能再触发
|
| | | return
|
| | |
|
| | | if reduceHP :
|
| | | lostValue = AttackCommon.CalcAtkProDef(buffOwner, curObj, lostValue, curSkill, tick)
|
| | |
| | | import GameWorld
|
| | | import SkillCommon
|
| | | import BuffSkill
|
| | | import IPY_GameWorld
|
| | |
|
| | | def CheckCanHappen(attacker, defender, passiveEffect, skillID, **skillkwargs):
|
| | | if attacker.GetPlayerAction() == IPY_GameWorld.paDie:
|
| | | # 当前已经被处理为死亡,那么就不触发
|
| | | return False
|
| | | |
| | | attacker.SetHP(1)
|
| | |
|
| | | return False
|
| | |
| | | import GameWorld
|
| | | import GameObj
|
| | | import SkillCommon
|
| | | import IPY_GameWorld
|
| | |
|
| | | def CheckCanHappen(attacker, defender, effect, curSkill):
|
| | | if attacker.GetPlayerAction() == IPY_GameWorld.paDie:
|
| | | # 当前已经被处理为死亡,那么就不触发
|
| | | return False
|
| | |
|
| | | result = GameWorld.CanHappen(effect.GetEffectValue(0))
|
| | | if result:
|