diff --git a/packages/shared/src/index.ts b/packages/shared/src/index.ts index 9937707b..d707780d 100644 --- a/packages/shared/src/index.ts +++ b/packages/shared/src/index.ts @@ -28,6 +28,7 @@ export { shortestPath, parseSeasonPairs, } from './seasonPairs.js'; +export type { SeasonPairs } from './seasonPairs.js'; export { generateInviteCommand } from './inviteCommand.js'; diff --git a/packages/shared/src/parallelGroupCreator.ts b/packages/shared/src/parallelGroupCreator.ts index c015ff0d..62d21484 100644 --- a/packages/shared/src/parallelGroupCreator.ts +++ b/packages/shared/src/parallelGroupCreator.ts @@ -446,6 +446,9 @@ export function createMythicPlusGroups( if (score < bestScore) { bestScore = score; bestPlayer = player; + + // ⚡ Bolt: Early loop termination when absolute optimal condition is met + if (bestScore === 0) break; } }