mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-17 07:15:22 +01:00
[Bug] Stop AI from Terastallizing after reviving (#6848)
This commit is contained in:
parent
0db8454af1
commit
86c1c5f68d
@ -793,6 +793,7 @@ export class Trainer extends Phaser.GameObjects.Container {
|
|||||||
this.config.trainerAI.teraMode === TeraAIMode.INSTANT_TERA
|
this.config.trainerAI.teraMode === TeraAIMode.INSTANT_TERA
|
||||||
&& !pokemon.isTerastallized
|
&& !pokemon.isTerastallized
|
||||||
&& this.config.trainerAI.instantTeras.includes(pokemon.initialTeamIndex)
|
&& this.config.trainerAI.instantTeras.includes(pokemon.initialTeamIndex)
|
||||||
|
&& !globalScene.currentBattle.enemyFaintsHistory.some(f => f.pokemon.id === pokemon.id)
|
||||||
) {
|
) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user