hch
2019-05-25 fc0477a43ec7ad1536a15efd2f229b140ba33fc7
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/BuffProcess_1315.py
@@ -34,21 +34,21 @@
    
    curBuff.SetValue(max(curBuff.GetValue() - 1, 0))
    
    lostHP = GameObj.GetHP(tagObj)*curEffect.GetEffectValue(1)/ChConfig.Def_MaxRateValue
    lostHP = curBuff.GetValue1()
    BaseAttack.AreaSkillAttackLostHP(tagObj, None, tagObj.GetPosX(), tagObj.GetPosY(), 
                                     curSkill, lostHP, tick, isExSkill=True)
    
#buffvalue第一个值为攻击次数, 第二个值为被动增强
#buffvalue第一个值为攻击次数, 第二个值为掉血万分率
def CalcBuffValue(attacker, defender, curSkill, changeBuffValueDict):
    curEffect = curSkill.GetEffect(0)
    return [curEffect.GetEffectValue(0)]
    return [curEffect.GetEffectValue(0), GameObj.GetHP(attacker)*curEffect.GetEffectValue(1)/ChConfig.Def_MaxRateValue]
        
## 添加BUFF后的逻辑
#  @param None
#  @return None
def DoAddBuffOver(curObj, addBuff, curEffect, tick):
def DoAddBuffOver(curObj, addBuff, curEffect, tick, buffOwner):
    Attack(curObj, addBuff, curEffect, tick)   #立即执行一次攻击
    if GameObj.GetHP(curObj) != 0:
        addBuff.SetProcessInterval(tick)