Skip to content

Commit

Permalink
[Hotfix] Change early exit on Dark Deal species calc (#4500)
Browse files Browse the repository at this point in the history
Co-authored-by: ImperialSympathizer <[email protected]>
  • Loading branch information
ben-lear and ImperialSympathizer authored Sep 29, 2024
1 parent 7bb49a3 commit 3e8b393
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export function getRandomSpeciesByStarterTier(starterTiers: number | [number, nu
// If no filtered mons exist at specified starter tiers, will expand starter search range until there are
// Starts by decrementing starter tier min until it is 0, then increments tier max up to 10
let tryFilterStarterTiers: [PokemonSpecies, number][] = filteredSpecies.filter(s => (s[1] >= min && s[1] <= max));
while (tryFilterStarterTiers.length === 0 && (min !== 0 && max !== 10)) {
while (tryFilterStarterTiers.length === 0 && !(min === 0 && max === 10)) {
if (min > 0) {
min--;
} else {
Expand Down

0 comments on commit 3e8b393

Please sign in to comment.