修复冰系带冰套打融化能吃到四件套效果的问题

This commit is contained in:
1umine 2024-07-04 21:22:55 +08:00
parent 3c669cd780
commit 43599bcf66
2 changed files with 5 additions and 2 deletions

View File

@ -129,7 +129,10 @@ let DmgAttr = {
let aCfg = attrMap[reduceAttr] let aCfg = attrMap[reduceAttr]
attr[reduceAttr][aCfg.calc] -= aCfg.value attr[reduceAttr][aCfg.calc] -= aCfg.value
} }
lodash.forEach(buffs, (buff) => {
meta.mastery = meta.mastery || buff.mastery // 先反应
})
lodash.forEach(buffs, (buff) => { lodash.forEach(buffs, (buff) => {
let ds = DmgAttr.getDs(attr, meta, params) let ds = DmgAttr.getDs(attr, meta, params)

View File

@ -122,7 +122,7 @@ const buffs = {
冰风迷途的勇士: { 冰风迷途的勇士: {
2: attr('dmg', 15, '冰'), 2: attr('dmg', 15, '冰'),
4: { 4: {
check: ({ element }) => element === '冰', check: ({ element, mastery }) => element === '冰' && mastery != 'melt',
title: '攻击处于冰元素影响下的敌人时暴击率提高20%', title: '攻击处于冰元素影响下的敌人时暴击率提高20%',
data: { data: {
cpct: 20 cpct: 20