hch
2018-12-29 87cfabeeec8f063ab11c70293c7838d4a878750e
860312  添加防范持续掉血如果血量已经为0不再触发

不死技能和buff效果,如果玩家当前为真实死亡则不再触发
3个文件已修改
12 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillCommon.py 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_4519.py 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4028.py 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillCommon.py
@@ -1232,6 +1232,9 @@
    
    notifyLostValue = lostValue
    curObjHP_BeforeAttack = GameObj.GetHP(curObj)
    if curObjHP_BeforeAttack == 0:
        # 没有血量不能再触发
        return
    
    if reduceHP :
        lostValue = AttackCommon.CalcAtkProDef(buffOwner, curObj, lostValue, curSkill, tick)
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveBuff_4519.py
@@ -15,8 +15,13 @@
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
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/PassiveBuff/PassiveSkill_4028.py
@@ -15,8 +15,12 @@
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: