diff --git a/utils.ts b/utils.ts index 17b510f..8fca3f2 100644 --- a/utils.ts +++ b/utils.ts @@ -8,7 +8,10 @@ import { } from "./types"; export const validColours = Object.entries(Colour).map((x) => x[0]); -export const validOpponents = Object.entries({...Opponents, ... CommunityOpponents}).map((x) => x[0]); +export const validOpponents = [ + ...Object.entries(Opponents).map((x) => x[0]), + ...Object.entries(CommunityOpponents).map((x) => x[0]) +]; export const validPlayerActions = Object.entries(PlayerActions).map((x) => x[1]); export async function generateBattler(