| | |
| | | #"""Version = 2025-09-16 14:30"""
|
| | | #-------------------------------------------------------------------------------
|
| | |
|
| | | def GetHappenValue(attacker, defender, curEffect, effSkill, **skillkwargs):
|
| | | def GetHappenValue(attacker, defender, curEffect, effSkill, effBuff, **skillkwargs):
|
| | |
|
| | | checkInStateList = curEffect.GetEffectValue(2)
|
| | | if checkInStateList:
|
| | | if not defender.CheckInState(checkInStateList):
|
| | | return
|
| | |
|
| | | onlyOwner = curEffect.GetEffectValue(3) # 是否仅对buff施法者有效,默认0-否,1-是
|
| | | if onlyOwner:
|
| | | if not effBuff:
|
| | | return
|
| | | if effBuff.GetOwnerID() != defender.GetID():
|
| | | return
|
| | | |
| | | attrValue = curEffect.GetEffectValue(0)
|
| | | calcType = curEffect.GetEffectValue(1)
|
| | | if calcType == 2: # 减少,其他默认增加
|