From e829d5a6a989b99ee9251faba679d5278592f02e Mon Sep 17 00:00:00 2001 From: Xavion3 Date: Thu, 6 Feb 2025 10:12:26 +1100 Subject: [PATCH] Make tera instant recharge if terapagos in party --- src/battle-scene.ts | 3 +++ src/field/pokemon.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/battle-scene.ts b/src/battle-scene.ts index f49a1798d9e..837ff8353d0 100644 --- a/src/battle-scene.ts +++ b/src/battle-scene.ts @@ -1374,6 +1374,9 @@ export default class BattleScene extends SceneBase { pokemon.resetBattleData(); pokemon.resetTera(); applyPostBattleInitAbAttrs(PostBattleInitAbAttr, pokemon); + if (pokemon.hasSpecies(Species.TERAPAGOS)) { + this.arena.playerTerasUsed = 0; + } } if (!this.trainer.visible) { diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 7cd4bdb96d2..11a1453841a 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -1559,7 +1559,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { } /** - * @returns the pokemon's current tera {@linkcode Type}, or `Type.UNKNOWN` if the pokemon is not terastallized + * @returns the pokemon's current tera {@linkcode Type} */ getTeraType(): Type { if (this.hasSpecies(Species.TERAPAGOS)) {