Skip to content

Commit

Permalink
Fix interaction between Mega Rayquaza/Terastal Clauses (#9936)
Browse files Browse the repository at this point in the history
  • Loading branch information
Karthik99999 authored Nov 18, 2024
1 parent 0c18c9c commit a893791
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion data/rulesets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,9 @@ export const Rulesets: import('../sim/dex-formats').FormatDataTable = {
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);
if (!this.ruleTable.has('terastalclause')) {
pokemon.canTerastallize = this.actions.canTerastallize(pokemon);
}
}
}
},
Expand Down

0 comments on commit a893791

Please sign in to comment.