mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-29 11:42:21 +02:00
Make tera instant recharge if terapagos in party
This commit is contained in:
parent
aee3dd8b24
commit
e829d5a6a9
@ -1374,6 +1374,9 @@ export default class BattleScene extends SceneBase {
|
|||||||
pokemon.resetBattleData();
|
pokemon.resetBattleData();
|
||||||
pokemon.resetTera();
|
pokemon.resetTera();
|
||||||
applyPostBattleInitAbAttrs(PostBattleInitAbAttr, pokemon);
|
applyPostBattleInitAbAttrs(PostBattleInitAbAttr, pokemon);
|
||||||
|
if (pokemon.hasSpecies(Species.TERAPAGOS)) {
|
||||||
|
this.arena.playerTerasUsed = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.trainer.visible) {
|
if (!this.trainer.visible) {
|
||||||
|
@ -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 {
|
getTeraType(): Type {
|
||||||
if (this.hasSpecies(Species.TERAPAGOS)) {
|
if (this.hasSpecies(Species.TERAPAGOS)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user