mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-06-02 22:08:36 -05:00
National Dex: Let Rayquaza terastallize if it can’t Mega Evolve (#9299)
Because Terastal is handled through a field rather than a method, MRC's failure to update it caused inconsistent behavior. This resolves the inconsistency with gen 8 implementation behavior (Rayquaza was able to dynamax under MRC).
This commit is contained in:
parent
4ccea821e3
commit
cc47a1c53b
|
|
@ -1239,7 +1239,11 @@ export const Rulesets: {[k: string]: FormatData} = {
|
|||
onBegin() {
|
||||
this.add('rule', 'Mega Rayquaza Clause: You cannot mega evolve Rayquaza');
|
||||
for (const pokemon of this.getAllPokemon()) {
|
||||
if (pokemon.species.id === 'rayquaza') pokemon.canMegaEvo = null;
|
||||
if (pokemon.species.id === 'rayquaza') {
|
||||
pokemon.canMegaEvo = null;
|
||||
// ability to terastal was determined before the clause activated, causing incorrect behavior
|
||||
pokemon.canTerastallize = this.actions.canTerastallize(pokemon);
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user