@pkmn/mods 0.10.1 → 0.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6343,7 +6343,7 @@ var Pokedex = {
|
|
|
6343
6343
|
function checkMegaForme(species, forme, battle) {
|
|
6344
6344
|
const baseSpecies = battle.dex.species.get(species.baseSpecies);
|
|
6345
6345
|
const altForme = battle.dex.species.get(`${baseSpecies.name}-${forme}`);
|
|
6346
|
-
if (altForme.exists && !battle.ruleTable.isBannedSpecies(altForme) && !battle.ruleTable.isBanned("pokemontag:mega")) {
|
|
6346
|
+
if (altForme.exists && altForme.gen <= 7 && !battle.ruleTable.isBannedSpecies(altForme) && !battle.ruleTable.isBanned("pokemontag:mega")) {
|
|
6347
6347
|
return altForme.name;
|
|
6348
6348
|
}
|
|
6349
6349
|
return null;
|