[Bug] Stop AI from Terastallizing after reviving (#6848)

This commit is contained in:
Fabi 2025-12-16 06:18:36 +01:00 committed by GitHub
parent 0db8454af1
commit 86c1c5f68d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
} }