mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-21 15:52:18 +02:00
Fix AI func save/loads.
This commit is contained in:
parent
0cb3a28dfa
commit
5e4568b3d3
@ -3448,8 +3448,6 @@ export default class BattleScene extends SceneBase {
|
||||
for (const modifier of modifiers) {
|
||||
this.addEnemyModifier(modifier, true, true);
|
||||
}
|
||||
|
||||
this.currentBattle.trainer.genAI(party);
|
||||
}
|
||||
|
||||
party.forEach((enemyPokemon: EnemyPokemon, i: number) => {
|
||||
|
@ -253,7 +253,10 @@ export class EncounterPhase extends BattlePhase {
|
||||
globalScene.getEnemyField().forEach(enemy => {
|
||||
overrideHeldItems(enemy, false);
|
||||
});
|
||||
}
|
||||
|
||||
if (battle.battleType === BattleType.TRAINER) {
|
||||
globalScene.currentBattle.trainer!.genAI(globalScene.getEnemyParty());
|
||||
}
|
||||
|
||||
globalScene.ui.setMode(Mode.MESSAGE).then(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user