mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-03-06 18:09:10 +00:00
[Bug] Fix AI func save/loads. #5414
Co-authored-by: damocleas <damocleas25@gmail.com>
This commit is contained in:
parent
aa3f924633
commit
ca5e578954
@ -3448,8 +3448,6 @@ export default class BattleScene extends SceneBase {
|
|||||||
for (const modifier of modifiers) {
|
for (const modifier of modifiers) {
|
||||||
this.addEnemyModifier(modifier, true, true);
|
this.addEnemyModifier(modifier, true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.currentBattle.trainer.genAI(party);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
party.forEach((enemyPokemon: EnemyPokemon, i: number) => {
|
party.forEach((enemyPokemon: EnemyPokemon, i: number) => {
|
||||||
|
@ -253,7 +253,10 @@ export class EncounterPhase extends BattlePhase {
|
|||||||
globalScene.getEnemyField().forEach(enemy => {
|
globalScene.getEnemyField().forEach(enemy => {
|
||||||
overrideHeldItems(enemy, false);
|
overrideHeldItems(enemy, false);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (battle.battleType === BattleType.TRAINER) {
|
||||||
|
globalScene.currentBattle.trainer!.genAI(globalScene.getEnemyParty());
|
||||||
}
|
}
|
||||||
|
|
||||||
globalScene.ui.setMode(Mode.MESSAGE).then(() => {
|
globalScene.ui.setMode(Mode.MESSAGE).then(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user