From fd088c9360dabbde0f2a4ffc2a0f15edb0ca4782 Mon Sep 17 00:00:00 2001 From: Xavion3 Date: Thu, 9 May 2024 15:39:20 +1000 Subject: [PATCH] Prevent doubles trainers generating with one pokemon (#642) --- src/field/trainer.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/field/trainer.ts b/src/field/trainer.ts index d52085b65..4a7458652 100644 --- a/src/field/trainer.ts +++ b/src/field/trainer.ts @@ -147,6 +147,9 @@ export default class Trainer extends Phaser.GameObjects.Container { const difficultyWaveIndex = this.scene.gameMode.getWaveForDifficulty(waveIndex); let baseLevel = 1 + difficultyWaveIndex / 2 + Math.pow(difficultyWaveIndex / 25, 2); + if (this.isDouble() && partyTemplate.size < 2) + partyTemplate.size = 2; + for (let i = 0; i < partyTemplate.size; i++) { let multiplier = 1;