hxp
2019-12-20 4bfd1e7a61c9924ace2e4e41ffec0107c372258e
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_801.py
@@ -23,20 +23,23 @@
## 添加BUFF后的逻辑
#  @param None
#  @return None
def DoAddBuffOver(curObj, addBuff, curEffect, tick):
def DoAddBuffOver(curObj, addBuff, curEffect, tick, buffOwner):
    # SetValue1用于当前吸收值
    addBuff.SetValue(GameObj.GetMaxHP(curObj)*curEffect.GetEffectValue(0)/ChConfig.Def_MaxRateValue) # 吸收上限
    addBuff.SetValue(GameObj.GetMaxHP(curObj)*curEffect.GetEffectValue(1)/ChConfig.Def_MaxRateValue) # 吸收上限
    return
def OnBuffDisappear(curObj, curSkill, curBuff, curEffect, tick):
    skillID = curEffect.GetEffectValue(2)
    if not skillID:
        return
    boomValue = curBuff.GetValue1()
    # 剩余护盾值用于爆炸
    if boomValue == 0:
        return
    
    skillData = GameWorld.GetGameData().GetSkillBySkillID(curEffect.GetEffectValue(2))
    skillData = GameWorld.GetGameData().GetSkillBySkillID(skillID)
    if not skillData:
        return
    # 存储起来用于伤害
@@ -48,6 +51,6 @@
        return
    curObj.SetDict(ChConfig.Def_PlayerKey_MoreHurtValue, boomValue)
    
    SkillShell.Trigger_UseSkill(curObj, None, curSkill, tick, curObj.GetPosX(), curObj.GetPosY())
    SkillShell.Trigger_UseSkill(curObj, None, skillData, tick, curObj.GetPosX(), curObj.GetPosY())
    curObj.SetDict(ChConfig.Def_PlayerKey_MoreHurtValue, 0)
    return