diff --git a/src/field/trainer.ts b/src/field/trainer.ts index 940929cc79a..5a86d5c4502 100644 --- a/src/field/trainer.ts +++ b/src/field/trainer.ts @@ -426,7 +426,7 @@ export default class Trainer extends Phaser.GameObjects.Container { const party = this.scene.getEnemyParty(); const nonFaintedPartyMembers = party.slice(this.scene.currentBattle.getBattlerCount()).filter(p => !p.isFainted()).filter(p => !trainerSlot || p.trainerSlot === trainerSlot); const partyMemberScores = nonFaintedPartyMembers.map(p => { - const playerField = this.scene.getPlayerField().filter(p => p.isActive(true)); + const playerField = this.scene.getPlayerField(); let score = 0; for (const playerPokemon of playerField) { score += p.getMatchupScore(playerPokemon);