Skip to content

Commit

Permalink
Account for Morpeko form permanence (#2297)
Browse files Browse the repository at this point in the history
* Account for Morpeko form permanence

* Update play.pokemonshowdown.com/src/battle.ts

---------

Co-authored-by: Kris Johnson <[email protected]>
  • Loading branch information
MathyFurret and KrisXV authored Nov 7, 2024
1 parent 878464a commit 1ff6525
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions play.pokemonshowdown.com/src/battle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2523,6 +2523,10 @@ export class Battle {
poke.terastallized = type;
poke.details += `, tera:${type}`;
poke.searchid += `, tera:${type}`;
if (poke.speciesForme.startsWith("Morpeko")) {
poke.details = poke.details.replace("Morpeko", poke.speciesForme);
poke.searchid = `${poke.ident}|${poke.details}`;
}
this.scene.animTransform(poke, true);
this.scene.resetStatbar(poke);
this.log(args, kwArgs);
Expand Down

0 comments on commit 1ff6525

Please sign in to comment.