mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-27 10:59:16 -05:00
Cross Evolution: Simplify validation (#7016)
All NFE Pokemon are going to be banned instead of restricted from now on, so the second check is useless.
This commit is contained in:
parent
e2d268747c
commit
4eeb6e91a6
|
|
@ -519,8 +519,7 @@ export const Formats: (FormatsData | {section: string, column?: number})[] = [
|
|||
if (crossSpecies.battleOnly || crossIsUnreleased || !crossSpecies.prevo) {
|
||||
return [`${species.name} cannot cross evolve into ${crossSpecies.name} because it isn't an evolution.`];
|
||||
}
|
||||
if (this.ruleTable.isRestrictedSpecies(crossSpecies) ||
|
||||
(this.ruleTable.isRestrictedSpecies(species) && !species.prevo)) {
|
||||
if (this.ruleTable.isRestrictedSpecies(crossSpecies)) {
|
||||
return [`${species.name} cannot cross evolve into ${crossSpecies.name} because it is banned.`];
|
||||
}
|
||||
const crossPrevoSpecies = this.dex.getSpecies(crossSpecies.prevo);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user