From 2f2d622e49752872a6a5a542bdd58f1cff3b3d9f Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Tue, 13 Dec 2022 23:02:24 -0600 Subject: [PATCH] Make focus roll amongst all visible elves --- src/data/layers/management.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/data/layers/management.tsx b/src/data/layers/management.tsx index 0790793..fea8a24 100644 --- a/src/data/layers/management.tsx +++ b/src/data/layers/management.tsx @@ -1232,7 +1232,12 @@ const layer = createLayer(id, () => { onClick() { focusCooldown.value = Decimal.fromValue(cooldown.value).toNumber(); focusTime.value = 10; - rerollFocusTargets(12, maximumElves.value); + rerollFocusTargets( + Object.values(elfTraining).filter( + elf => unref(elf.visibility) === Visibility.Visible + ).length, + maximumElves.value + ); } }));