| | |
| | | isRefreshAttr = True
|
| | |
|
| | | if refreshType and buffSkill and buffOwner:
|
| | | TurnPassive.OnTriggerPassiveEffect(turnFight, buffOwner, ChConfig.TriggerWay_BuffAddByOwner, connSkill=buffSkill, connBuff=curBuff)
|
| | | |
| | | TurnPassive.OnTriggerPassiveEffect(turnFight, buffOwner, ChConfig.TriggerWay_BuffAddByOwner, tagObj=batObj, connSkill=buffSkill, connBuff=curBuff)
|
| | | # 判断是否有额外属性的
|
| | | if not isRefreshAttr:
|
| | | effExDict = curBuff.GetEffectExDict()
|
| | | for effCalcInfo in effExDict.keys():
|
| | | effID = effCalcInfo[0]
|
| | | if effID in ChConfig.AttrIDList:
|
| | | isRefreshAttr = True
|
| | | break
|
| | | |
| | | if isRefreshAttr:
|
| | | RefreshBuffAttr(batObj)
|
| | |
|
| | |
| | | isRefreshAttr = False
|
| | | objID = batObj.GetID()
|
| | | buffMgr = batObj.GetBuffManager()
|
| | | for index in range(buffMgr.GetBuffCount()):
|
| | | for index in range(buffMgr.GetBuffCount())[::-1]:
|
| | | buff = buffMgr.GetBuffByIndex(index)
|
| | | buffID = buff.GetBuffID()
|
| | | skillID = buff.GetSkillID()
|
| | |
| | |
|
| | | objID = batObj.GetID()
|
| | |
|
| | | batAttrDict = batObj.ResetBattleEffect()
|
| | | |
| | | befHP = batObj.GetHP()
|
| | | befMaxHP = batObj.GetMaxHP()
|
| | | |
| | | batAttrDict = batObj.ResetBattleEffect()
|
| | | GameWorld.DebugLogEx("RefreshBuffAttr ID:%s,atk=%s,def=%s,hp=%s/%s,batAttrDict=%s",
|
| | | objID, batObj.GetAtk(), batObj.GetDef(), befHP, befMaxHP, batAttrDict)
|
| | |
|
| | |
| | | effID = effect.GetEffectID()
|
| | | if effID not in ChConfig.AttrIDList:
|
| | | continue
|
| | | if effect.GetTriggerWay():
|
| | | # 需要触发才有效的不算
|
| | | continue
|
| | | if effect.GetTriggerSrc() not in [ChConfig.TriggerSrc_Skill]:
|
| | | # 技能属性仅技能时有效
|
| | | continue
|