Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validator: Disallow duplicate moves #8191

Merged
merged 4 commits into from Apr 10, 2021

Conversation

DaWoblefet
Copy link
Member

@DaWoblefet DaWoblefet commented Apr 10, 2021

Currently, when a user creates a Pokemon with multiple duplicate moves, the validator doesn't say anything is wrong and just removes the duplicated move from the user's moveset automatically. I've definitely made the mistake in the past where I quickly make a Pokemon's set, don't realize I really only have 3 moves, and don't figure it out until the battle. This also fixes an issue with automatic move changes (i.e. Iron Head -> Behemoth moves) where a user accidentally adds both Iron Head and the Behemoth move without realizing Iron Head becomes Behemoth Blade / Bash. This way, the mistake is exposed at the teambuilder level, so they don't think get confused about why a move is missing.

Sample:
image

Fixes https://github.com/smogon/pokemon-showdown/projects/3#card-51711810

data/rulesets.ts Outdated Show resolved Hide resolved
Co-authored-by: Annika <annika0uwu@gmail.com>
data/rulesets.ts Outdated Show resolved Hide resolved
@Zarel Zarel merged commit d858bbd into smogon:master Apr 10, 2021
@Zarel
Copy link
Member

Zarel commented Apr 10, 2021

Thanks!

@DaWoblefet DaWoblefet deleted the block-duplicate-moves branch April 10, 2021 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants