File tree 1 file changed +5
-1
lines changed
play.pokemonshowdown.com/src
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2520,16 +2520,20 @@ export class Battle {
2520
2520
case '-terastallize' : {
2521
2521
let poke = this . getPokemon ( args [ 1 ] ) ! ;
2522
2522
let type = Dex . types . get ( args [ 2 ] ) . name ;
2523
+ let lockForme = false ;
2523
2524
poke . removeVolatile ( 'typeadd' as ID ) ;
2524
2525
poke . teraType = type ;
2525
2526
poke . terastallized = type ;
2526
2527
poke . details += `, tera:${ type } ` ;
2527
2528
poke . searchid += `, tera:${ type } ` ;
2528
2529
if ( poke . speciesForme . startsWith ( "Morpeko" ) ) {
2530
+ lockForme = true ;
2531
+ poke . speciesForme = poke . getSpeciesForme ( ) ;
2529
2532
poke . details = poke . details . replace ( "Morpeko" , poke . speciesForme ) ;
2530
2533
poke . searchid = `${ poke . ident } |${ poke . details } ` ;
2534
+ delete poke . volatiles [ 'formechange' ] ;
2531
2535
}
2532
- this . scene . animTransform ( poke , true ) ;
2536
+ this . scene . animTransform ( poke , true , lockForme ) ;
2533
2537
this . scene . resetStatbar ( poke ) ;
2534
2538
this . log ( args , kwArgs ) ;
2535
2539
break ;
You can’t perform that action at this time.
0 commit comments