From 92870b20ef0c642b96138efcae440c8a5219e3f0 Mon Sep 17 00:00:00 2001 From: MathyFurret <4866817+MathyFurret@users.noreply.github.com> Date: Tue, 26 Nov 2024 20:38:04 -0600 Subject: [PATCH] Fix Morpeko forme locking --- play.pokemonshowdown.com/src/battle.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/play.pokemonshowdown.com/src/battle.ts b/play.pokemonshowdown.com/src/battle.ts index 02c22f8a5f..89036a7772 100644 --- a/play.pokemonshowdown.com/src/battle.ts +++ b/play.pokemonshowdown.com/src/battle.ts @@ -2520,16 +2520,20 @@ export class Battle { case '-terastallize': { let poke = this.getPokemon(args[1])!; let type = Dex.types.get(args[2]).name; + let lockForme = false; poke.removeVolatile('typeadd' as ID); poke.teraType = type; poke.terastallized = type; poke.details += `, tera:${type}`; poke.searchid += `, tera:${type}`; if (poke.speciesForme.startsWith("Morpeko")) { + lockForme = true; + poke.speciesForme = poke.getSpeciesForme(); poke.details = poke.details.replace("Morpeko", poke.speciesForme); poke.searchid = `${poke.ident}|${poke.details}`; + delete poke.volatiles['formechange']; } - this.scene.animTransform(poke, true); + this.scene.animTransform(poke, true, lockForme); this.scene.resetStatbar(poke); this.log(args, kwArgs); break;