From 840e3063ff6d0d0ade5140c3fe0869486bb86ec2 Mon Sep 17 00:00:00 2001 From: Madmadness65 Date: Sun, 27 Oct 2024 11:12:15 -0500 Subject: [PATCH] Minor fix Gen 7 challenge wasn't taking into account the `rand` value --- src/data/challenge.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/challenge.ts b/src/data/challenge.ts index 2bb5cbf8adb..3ff7d768713 100644 --- a/src/data/challenge.ts +++ b/src/data/challenge.ts @@ -451,7 +451,7 @@ export class SingleGenerationChallenge extends Challenge { applyFixedBattle(waveIndex: Number, battleConfig: FixedBattleConfig): boolean { let trainerTypes: TrainerType[] = []; - if (this.rand === 0 && this.value === 3 || this.value === 7) { + if (this.rand === 0 && this.value === 3 || this.rand === 0 && this.value === 7) { /** Currently used for determining the evil team when there is more than one for a given generation. */ const rand = Utils.randSeedInt(2, 1); this.rand = rand;