Minor fix

Gen 7 challenge wasn't taking into account the  `rand` value
This commit is contained in:
Madmadness65 2024-10-27 11:12:15 -05:00
parent ab44755d4b
commit 840e3063ff

View File

@ -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;