Skip to content

Commit

Permalink
Fix chasca bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyentvan7 committed Dec 17, 2024
1 parent 66413c0 commit 7321876
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions libs/gi/sheets/src/Characters/Chasca/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
greaterEq,
infoMut,
input,
min,
percent,
prod,
subscript,
Expand Down Expand Up @@ -98,8 +99,12 @@ const dm = {
},
} as const

const phecElements = sum(
...absorbableEle.map((ele) => greaterEq(tally[ele], 1, 1))
const phecElements = min(
sum(
...absorbableEle.map((ele) => greaterEq(tally[ele], 1, 1)),
greaterEq(input.constellation, 2, 1)
),
3
)
const [condA1InMultitargetPath, condA1InMultitarget] = cond(
key,
Expand Down Expand Up @@ -208,7 +213,7 @@ const dmgFormulas = {
...hitEle[eleKey],
...shiningAddl,
},
undefined,
percent(dm.passive2.dmg),
'skill'
)
)
Expand Down

0 comments on commit 7321876

Please sign in to comment.