| | |
| | | ## 添加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
|
| | | # 存储起来用于伤害
|
| | |
| | | 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
|