Actually fix single battle summoning issue

This commit is contained in:
Flashfyre committed 2024-03-21 12:34:19 -04:00
1 parent 918a0d77f1
commit 7189258095
3 files changed
+6 -3

No files matched your search

+3
View File
@@ -271,6 +271,9 @@ export default class Trainer extends Phaser.GameObjects.Container {
}
getPartyMemberMatchupScores(trainerSlot: TrainerSlot = TrainerSlot.NONE): [integer, integer][] {
if (trainerSlot && !this.isDouble())
trainerSlot = TrainerSlot.NONE;
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 => {