From 59d6aaf006a568961f1816fe0a7cd11ef7d19c58 Mon Sep 17 00:00:00 2001 From: Made Baruna Date: Wed, 13 Jul 2022 04:50:05 +0700 Subject: [PATCH] Dont recalculate manual input pity Fix #279 --- src/routes/wish/import.svelte | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/routes/wish/import.svelte b/src/routes/wish/import.svelte index e05616b3..b2d7a378 100644 --- a/src/routes/wish/import.svelte +++ b/src/routes/wish/import.svelte @@ -510,7 +510,11 @@ } latestLegendary = combined[i]; - combined[i].pity = legendary; + + if (combined[i].manualInput !== true) { + combined[i].pity = legendary; + } + legendary = 0; // rare = 0; } else if (rarity === 4) { @@ -531,7 +535,11 @@ } latestRare = combined[i]; - combined[i].pity = rare; + + if (combined[i].manualInput !== true) { + combined[i].pity = rare; + } + rare = 0; } else { combined[i].pity = 1;