diff --git a/ALittleSecretIngredient/Randomizer.cs b/ALittleSecretIngredient/Randomizer.cs index fd3618a..d547cd5 100644 --- a/ALittleSecretIngredient/Randomizer.cs +++ b/ALittleSecretIngredient/Randomizer.cs @@ -2884,7 +2884,7 @@ private void RandomizeStartingClasses(RandomizerSettings.IndividualSettings sett { List totalLevels = individuals.Select(i => i.Level + (i.GetTOS(toss).Rank == 1 ? 20 : 0)).ToList(); individuals.Randomize(i => i.Jid, (i, s) => i.Jid = s, settings.JidAlly.Distribution, PlayableClasses.GetIDs()); - if (settings.JidEnemy.GetArg(0)) + if (settings.JidAlly.GetArg(0)) foreach (Individual i in individuals) { int maxScore = toss.Select(tos => CalcCompatibility(i, tos)).Max(); @@ -2906,7 +2906,7 @@ private void RandomizeStartingClasses(RandomizerSettings.IndividualSettings sett (totalLevels[iIdx] > 20 ? tos.Rank == 1 : tos.Rank == 0)).Select(tos => tos.Jid).ToList(); EnsureLegalClass(toss, totalLevels[iIdx], i, tos, legalClassIDs); tos = i.GetTOS(toss); - if (retryCounter < 32 && settings.JidEnemy.GetArg(0) && CalcCompatibility(i, tos) < ushort.MaxValue / 2) + if (retryCounter < 32 && settings.JidAlly.GetArg(0) && CalcCompatibility(i, tos) < ushort.MaxValue / 2) { i.Jid = legalClassIDs.GetRandom(); iIdx--;