129 【战斗】战斗系统-服务端(优化效果6011可指定检查自己还是检查目标的buff;)
| | |
| | | def GetHappenValue(attacker, defender, curEffect, effSkill, effBuff, connSkill, **skillkwargs):
|
| | | layerPer = curEffect.GetEffectValue(0) # 每层增加的万分比
|
| | | buffStateList = curEffect.GetEffectValue(1) # buff״̬ [״̬1, ״̬2, ...]
|
| | | checkTag = curEffect.GetEffectValue(2) # buff检查自己还是对方: 0-自己,1-对方
|
| | | if not buffStateList:
|
| | | return
|
| | |
|
| | | layerTotal = 0
|
| | | if checkTag:
|
| | | buffMgr = defender.GetBuffManager()
|
| | | else:
|
| | | buffMgr = attacker.GetBuffManager()
|
| | | for buffState in buffStateList:
|
| | | for buff in buffMgr.FindBuffListByState(buffState):
|