Make focus roll amongst all visible elves

This commit is contained in:
thepaperpilot 2022-12-13 23:02:24 -06:00
parent 943500732d
commit 2f2d622e49

View file

@ -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
);
}
}));