Actually fix single battle summoning issue
This commit is contained in:
1 parent
918a0d77f1
commit
7189258095
3 files changed
+6
-3
No files matched your search
@@ -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 => {
|
||||
|
||||
Reference in new issue
Block a user