diff --git a/src/lib.ts b/src/lib.ts index f42e227..46fde30 100644 --- a/src/lib.ts +++ b/src/lib.ts @@ -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] ); }