File tree 1 file changed +12
-10
lines changed
play.pokemonshowdown.com/src
1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -2529,16 +2529,18 @@ export class Battle {
2529
2529
this . log ( args , kwArgs ) ;
2530
2530
break ;
2531
2531
}
2532
- case '-endTerastallize' : {
2533
- let poke = this . getPokemon ( args [ 1 ] ) ! ;
2534
- poke . removeVolatile ( 'terastallize' as ID ) ;
2535
- poke . teraType = '' ;
2536
- poke . terastallized = '' ;
2537
- poke . details = poke . details . replace ( / , t e r a : [ a - z ] + / i, '' ) ;
2538
- poke . searchid = poke . searchid . replace ( / , t e r a : [ a - z ] + / i, '' ) ;
2539
- this . scene . animTransform ( poke , true ) ;
2540
- this . scene . resetStatbar ( poke ) ;
2541
- this . log ( args , kwArgs ) ;
2532
+ case '-custom' : {
2533
+ let poke = this . getPokemon ( args [ 2 ] ) ! ;
2534
+ if ( args [ 1 ] && args [ 1 ] === 'endterastallize' ) {
2535
+ poke . removeVolatile ( 'terastallize' as ID ) ;
2536
+ poke . teraType = '' ;
2537
+ poke . terastallized = '' ;
2538
+ poke . details = poke . details . replace ( / , t e r a : [ a - z ] + / i, '' ) ;
2539
+ poke . searchid = poke . searchid . replace ( / , t e r a : [ a - z ] + / i, '' ) ;
2540
+ this . scene . animTransform ( poke ) ;
2541
+ this . scene . resetStatbar ( poke ) ;
2542
+ this . log ( args , kwArgs ) ;
2543
+ }
2542
2544
break ;
2543
2545
}
2544
2546
case '-start' : {
You can’t perform that action at this time.
0 commit comments