Skip to content

Commit

Permalink
Fix: Activating c4 will not allow you to go higher than 0 seconds on … (
Browse files Browse the repository at this point in the history
#2596)

* Fix: Activating c4 will not allow you to go higher than 0 seconds on a4 passive

* Review changes

---------

Co-authored-by: Failchon <[email protected]>
Co-authored-by: Van Nguyen <[email protected]>
  • Loading branch information
3 people authored Jan 25, 2025
1 parent 52fec83 commit 073979e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libs/gi/sheets/src/Characters/Mavuika/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
subscript,
sum,
target,
threshold,
unequal,
} from '@genshin-optimizer/gi/wr'
import { cond, st, stg } from '../../SheetUtil'
Expand Down Expand Up @@ -183,7 +184,10 @@ const a4TimeSinceBurst_dmg_disp = greaterEq(
percent(dm.passive2.dmg_),
burstSpirit,
1 / dm.passive2.duration,
sum(dm.passive2.duration, prod(-1, a4TimeSinceBurst))
sum(
dm.passive2.duration,
prod(-1, threshold(input.constellation, 4, 0, a4TimeSinceBurst))
)
)
),
{ path: 'all_dmg_', isTeamBuff: true }
Expand Down

0 comments on commit 073979e

Please sign in to comment.