From 4bc3c9512b1a0f8a0d050417ed48c106f9d37836 Mon Sep 17 00:00:00 2001 From: liangshi <1142607614@qq.com> Date: Thu, 21 Nov 2024 00:29:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=9C=BA=E6=99=AF=E5=86=B2?= =?UTF-8?q?=E5=87=BB=E6=B3=A2=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/dmg/DmgCalc.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/models/dmg/DmgCalc.js b/models/dmg/DmgCalc.js index acf18a5f..3f7e4981 100644 --- a/models/dmg/DmgCalc.js +++ b/models/dmg/DmgCalc.js @@ -47,6 +47,13 @@ let DmgCalc = { dmgNum = (1 + phy.base / 100 + phy.plus / 100 + dynamicPhy / 100) } + if (/^scene,.*/.test(ele) || /.*,scene$/.test(ele) || ele === 'scene') { + dmgNum = 1 + if (ele !== 'scene') { + ele = ele.replace(/(,)?scene(,)?/g, "") + } + } + // 易伤区 let enemydmgNum = 1 if (game === 'sr') { @@ -125,7 +132,7 @@ let DmgCalc = { cdmgNum = 0 } - const isEle = ele !== false && ele !== 'phy' + const isEle = ele !== false && ele !== 'phy' && ele !== 'scene' // 反应区 let eleNum = 1 let eleBase = 1