Skip to content

Commit

Permalink
fix DmgCalc bug
Browse files Browse the repository at this point in the history
  • Loading branch information
restid committed Nov 30, 2024
1 parent 2b6c7ec commit 55d165d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion models/dmg/DmgCalc.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ let DmgCalc = {
dmgNum = (1 + phy.base / 100 + phy.plus / 100 + dynamicPhy / 100)
}

if (/pyro|hydro|electro|cryo/.test(talent)) dmgNum = 1
['pyro', 'hydro', 'electro', 'cryo'].forEach(key => {
if (new RegExp(key).test(talent)) dmgNum -= attr[key].dmg / 100
})

// 易伤区
let enemydmgNum = 1
Expand Down

0 comments on commit 55d165d

Please sign in to comment.