Allowing use of candies in whitelisted phases

This commit is contained in:
Wlowscha 2025-02-28 21:23:08 +01:00
parent 393c5d787e
commit 0edc9f07c4
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04

View File

@ -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;