From 073979eeefb2f438e8bf0f0139e28e7e7d10db9e Mon Sep 17 00:00:00 2001 From: failchon Date: Sun, 26 Jan 2025 01:45:34 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20Activating=20c4=20will=20not=20allow=20y?= =?UTF-8?q?ou=20to=20go=20higher=20than=200=20seconds=20on=20=E2=80=A6=20(?= =?UTF-8?q?#2596)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix: Activating c4 will not allow you to go higher than 0 seconds on a4 passive * Review changes --------- Co-authored-by: Failchon Co-authored-by: Van Nguyen <36019388+nguyentvan7@users.noreply.github.com> --- libs/gi/sheets/src/Characters/Mavuika/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/gi/sheets/src/Characters/Mavuika/index.tsx b/libs/gi/sheets/src/Characters/Mavuika/index.tsx index fd740e5869..0994951884 100644 --- a/libs/gi/sheets/src/Characters/Mavuika/index.tsx +++ b/libs/gi/sheets/src/Characters/Mavuika/index.tsx @@ -16,6 +16,7 @@ import { subscript, sum, target, + threshold, unequal, } from '@genshin-optimizer/gi/wr' import { cond, st, stg } from '../../SheetUtil' @@ -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 }