Skip to content

Commit

Permalink
Merge pull request #14 from loathers/fix-orbweave
Browse files Browse the repository at this point in the history
fix orbweaving code in getisland
  • Loading branch information
gausie authored Dec 23, 2024
2 parents 44dd558 + e67ef4b commit 1fa9583
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ export function getIsland(orb = true): HolidayIsland {
const ponderResult = OrbManager.ponder();

return (
islands.find(
({ location, orbTarget }) => ![undefined, orbTarget].includes(ponderResult.get(location))
) ?? islands[0]
islands.find(({ location, orbTarget }) => ponderResult.get(location) === orbTarget) ??
islands.find(({ location }) => !ponderResult.has(location)) ??
islands[0]
);
}

Expand Down

0 comments on commit 1fa9583

Please sign in to comment.