Make tera instant recharge if terapagos in party

This commit is contained in:
Xavion3 2025-02-06 10:12:26 +11:00
parent aee3dd8b24
commit e829d5a6a9
2 changed files with 4 additions and 1 deletions

View File

@ -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) {

View File

@ -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)) {