parent
d06e5d2fc6
commit
67cb79a435
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue