From 11693ba8030600f5babd8d266e84d2769c22d8b6 Mon Sep 17 00:00:00 2001 From: DaInfLoop Date: Tue, 13 Aug 2024 14:30:45 +0100 Subject: [PATCH] fix but better --- utils.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(