Skip to content

Commit

Permalink
End Terastallize
Browse files Browse the repository at this point in the history
  • Loading branch information
Seerd authored Aug 30, 2023
1 parent 2451f24 commit 78ab342
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/battle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2519,6 +2519,18 @@ export class Battle {
this.log(args, kwArgs);
break;
}
case '-endTerastallize': {
let poke = this.getPokemon(args[1])!;
poke.removeVolatile('terastallize' as ID);
poke.teraType = '';
poke.terastallized = '';
poke.details = poke.details.replace(/, tera:[a-z]+/i, '');
poke.searchid = poke.searchid.replace(/, tera:[a-z]+/i, '');
this.scene.animTransform(poke, true);
this.scene.resetStatbar(poke);
this.log(args, kwArgs);
break;
}
case '-start': {
let poke = this.getPokemon(args[1])!;
let effect = Dex.getEffect(args[2]);
Expand Down

0 comments on commit 78ab342

Please sign in to comment.