Skip to content

Commit

Permalink
Force Stealth Rock on non-Uber teams
Browse files Browse the repository at this point in the history
  • Loading branch information
livid-washed committed Jan 14, 2025
1 parent e483703 commit 4b9bdeb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data/random-battles/gen9/teams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2674,6 +2674,8 @@ export class RandomTeams {
if (teamData.resistances[type]) continue;
if (teamData.weaknesses[type] >= 3 * limitFactor) return this.randomFactoryTeam(side, ++depth);
}
// Try to force Stealth Rock on non-Uber teams
if (!teamData.has['stealthRock'] && this.factoryTier !== 'Uber') return this.randomFactoryTeam(side, ++depth);
}
return pokemon;
}
Expand Down

0 comments on commit 4b9bdeb

Please sign in to comment.