From a95f8f40aaf1683789f5094f1495c64f7a2b4567 Mon Sep 17 00:00:00 2001 From: Cecil Bowen Date: Tue, 17 Oct 2023 11:21:57 -0500 Subject: [PATCH] fixed max unique cost for generics --- src/components/BuildList.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/BuildList.js b/src/components/BuildList.js index fd204e6..2d114d4 100644 --- a/src/components/BuildList.js +++ b/src/components/BuildList.js @@ -154,7 +154,10 @@ const BuildList = ({ evilities, removeEvilityFromBuild, passFixedClass, loadBuil } } const uniqueCostSum = evilities.filter(x => x.unique).length; - const maxUniqueCost = 3 + evilities.filter(x => x.fixed && x.fixed === charClass).length; + let maxUniqueCost = 3 + evilities.filter(x => x.fixed && x.fixed === charClass).length; + if (evilities.filter(x => x.fixed).length === 0) { + maxUniqueCost = 4; + } const errorCost =