mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-20 15:22:19 +02:00
Allowing use of candies in whitelisted phases
This commit is contained in:
parent
393c5d787e
commit
0edc9f07c4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user