Done /randpoke "pokemon not found" in old gen battles

Mathy

F░U░R░R░E░T░ I░N░ B░I░O░
is a Programmeris a Forum Moderatoris a Battle Simulator Moderator
What type of bug are you reporting? Chat

What is the bug?
Currently, typing /randpoke or /randmove can roll things that don't exist in the gen of the battle you use it in, resulting in it saying that the Pokemon/move was not found in the gen. It should instead check the room's format in the same way that /ds and /ms already do (that is, room?.settings.defaultFormat || room?.battle?.format).

Are you able to replicate it? If so, how?
Yes, for example, type /randpoke in a gen 1 battle and most of the time it triggers.
 
Made a PR #10052

The other /rand commands can still give unexpected results though

/randitem and /randability: neither exist in gen1, and in other past gens they can return newer results too
/randtype: Can return type Stellar in gens pre 9

Should they be changed too? They don't give an error, but it's a bit weird to get those results

Screenshot 2023-12-31 at 16.41.55.png
 

Users Who Are Viewing This Thread (Users: 1, Guests: 0)

Top