From 43599bcf6666a52244c64c0d0f80197d36dbc750 Mon Sep 17 00:00:00 2001 From: 1umine Date: Thu, 4 Jul 2024 21:22:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=86=B0=E7=B3=BB=E5=B8=A6?= =?UTF-8?q?=E5=86=B0=E5=A5=97=E6=89=93=E8=9E=8D=E5=8C=96=E8=83=BD=E5=90=83?= =?UTF-8?q?=E5=88=B0=E5=9B=9B=E4=BB=B6=E5=A5=97=E6=95=88=E6=9E=9C=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/dmg/DmgAttr.js | 5 ++++- resources/meta-gs/artifact/calc.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/models/dmg/DmgAttr.js b/models/dmg/DmgAttr.js index d0df56de..65b102e9 100644 --- a/models/dmg/DmgAttr.js +++ b/models/dmg/DmgAttr.js @@ -129,7 +129,10 @@ let DmgAttr = { let aCfg = attrMap[reduceAttr] attr[reduceAttr][aCfg.calc] -= aCfg.value } - + + lodash.forEach(buffs, (buff) => { + meta.mastery = meta.mastery || buff.mastery // 先反应 + }) lodash.forEach(buffs, (buff) => { let ds = DmgAttr.getDs(attr, meta, params) diff --git a/resources/meta-gs/artifact/calc.js b/resources/meta-gs/artifact/calc.js index ac9fb678..98feb7fb 100644 --- a/resources/meta-gs/artifact/calc.js +++ b/resources/meta-gs/artifact/calc.js @@ -122,7 +122,7 @@ const buffs = { 冰风迷途的勇士: { 2: attr('dmg', 15, '冰'), 4: { - check: ({ element }) => element === '冰', + check: ({ element, mastery }) => element === '冰' && mastery != 'melt', title: '攻击处于冰元素影响下的敌人时,暴击率提高20%', data: { cpct: 20