Skip to content

Commit

Permalink
Revamp [Gen 4] Random Battle (#9883)
Browse files Browse the repository at this point in the history
  • Loading branch information
livid-washed committed Nov 5, 2023
1 parent 609161e commit 84ac9e9
Show file tree
Hide file tree
Showing 8 changed files with 4,078 additions and 1,883 deletions.
7 changes: 7 additions & 0 deletions data/mods/gen3/random-teams.ts
Expand Up @@ -3,6 +3,12 @@ import {Utils} from '../../../lib';
import {PRNG, PRNGSeed} from '../../../sim/prng';
import type {MoveCounter, OldRandomBattleSpecies} from '../gen8/random-teams';

// Moves that shouldn't be the only STAB moves:
const NO_STAB = [
'bounce', 'eruption', 'explosion', 'fakeout', 'icywind', 'machpunch',
'pursuit', 'quickattack', 'reversal', 'selfdestruct', 'waterspout',
];

export class RandomGen3Teams extends RandomGen4Teams {
battleHasDitto: boolean;
battleHasWobbuffet: boolean;
Expand All @@ -11,6 +17,7 @@ export class RandomGen3Teams extends RandomGen4Teams {

constructor(format: string | Format, prng: PRNG | PRNGSeed | null) {
super(format, prng);
this.noStab = NO_STAB;
this.battleHasDitto = false;
this.battleHasWobbuffet = false;
this.moveEnforcementCheckers = {
Expand Down

0 comments on commit 84ac9e9

Please sign in to comment.