From 52bd08488333317617c6319befe286c019cee550 Mon Sep 17 00:00:00 2001 From: I Made Setia Baruna Date: Sat, 9 Jan 2021 02:34:15 +0800 Subject: [PATCH] Fix hiding with talent in calculator --- src/routes/calculator/_character.svelte | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/routes/calculator/_character.svelte b/src/routes/calculator/_character.svelte index 88bbba71..37cbdc68 100644 --- a/src/routes/calculator/_character.svelte +++ b/src/routes/calculator/_character.svelte @@ -84,6 +84,7 @@ $: currentLevel, updateMinAscension(); $: intendedLevel, updateMinIntendedAscension(); $: intendedAscension, updateMaxTalentLevel(); + $: withAscension, checkWithTalent(); $: canCalculate = (withAscension ? selectedCharacter !== null : true) && @@ -96,6 +97,12 @@ intendedLevel > 0 && intendedLevel <= 90; + function checkWithTalent() { + if (!withAscension) { + withTalent = false; + } + } + function updateIntendedAscension() { intendedAscension = Math.max(currentAscension, intendedAscension); }