From 0edc9f07c429d12b71d9022f4f824b6675069dcf Mon Sep 17 00:00:00 2001 From: Wlowscha <54003515+Wlowscha@users.noreply.github.com> Date: Fri, 28 Feb 2025 21:23:08 +0100 Subject: [PATCH] Allowing use of candies in whitelisted phases --- src/ui/pokedex-page-ui-handler.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/pokedex-page-ui-handler.ts b/src/ui/pokedex-page-ui-handler.ts index 6f6ace1b7d6..49bb52dddbb 100644 --- a/src/ui/pokedex-page-ui-handler.ts +++ b/src/ui/pokedex-page-ui-handler.ts @@ -558,7 +558,8 @@ export default class PokedexPageUiHandler extends MessageUiHandler { show(args: any[]): boolean { - this.canUseCandies = false; + // Allow the use of candies if we are in one of the whitelisted phases + this.canUseCandies = [ "TitlePhase", "SelectStarterPhase", "CommandPhase" ].includes(globalScene.getCurrentPhase()?.constructor.name ?? ""); if (args.length >= 1 && args[0] === "refresh") { return false;