| | |
| | | import SkillCommon
|
| | | import GameWorld
|
| | | import ChConfig
|
| | | import PlayerControl
|
| | |
|
| | | def ProcessBuff(defender, curBuff, curEffect, processBuffTick, tick):
|
| | | buffOwner = SkillCommon.GetBuffOwner(curBuff)
|
| | |
| | | def OnCalcBuffEx(defender, curEffect, calcDict, curBuff):
|
| | |
|
| | | attrType = curEffect.GetEffectValue(1)
|
| | | value = curEffect.GetEffectValue(2)
|
| | | value = curEffect.GetEffectValue(2) + curBuff.GetValue2()
|
| | | calcDict[attrType] = calcDict.get(attrType, 0) - value
|
| | |
|
| | | return
|
| | |
| | | # @return None
|
| | | # @remarks 函数详细说明.
|
| | | def GetCalcType():
|
| | | return ChConfig.TYPE_NoLinear |
| | | return ChConfig.TYPE_NoLinear
|
| | |
|
| | | ## 添加BUFF后的逻辑
|
| | | # @param None
|
| | | # @return None
|
| | | def DoAddBuffOver(curObj, addBuff, curEffect, tick, buffOwner):
|
| | | if not buffOwner:
|
| | | return
|
| | | if curEffect.GetEffectValue(1) != ChConfig.TYPE_Calc_AttrSpeed:
|
| | | return
|
| | | |
| | | addBuff.SetValue2(PlayerControl.GetSubSpeedPer(buffOwner))
|
| | | return
|
| | |
|