diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 8071b2c032e..b91e8353908 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -2559,6 +2559,10 @@ export class PlayerPokemon extends Pokemon { constructor(scene: BattleScene, species: PokemonSpecies, level: integer, abilityIndex: integer, formIndex: integer, gender: Gender, shiny: boolean, variant: Variant, ivs: integer[], nature: Nature, dataSource: Pokemon | PokemonData) { super(scene, 106, 148, species, level, abilityIndex, formIndex, gender, shiny, variant, ivs, nature, dataSource); + if (Overrides.STATUS_OVERRIDE) { + this.status = new Status(Overrides.STATUS_OVERRIDE) + } + if (Overrides.SHINY_OVERRIDE) { this.shiny = true; this.initShinySparkle(); @@ -2949,6 +2953,10 @@ export class EnemyPokemon extends Pokemon { if (boss) this.setBoss(); + if (Overrides.OPP_STATUS_OVERRIDE) { + this.status = new Status(Overrides.OPP_STATUS_OVERRIDE) + } + if (!dataSource) { this.generateAndPopulateMoveset(); diff --git a/src/overrides.ts b/src/overrides.ts index b7307ab2f7f..bed50efc606 100644 --- a/src/overrides.ts +++ b/src/overrides.ts @@ -11,6 +11,7 @@ import { Type } from './data/type'; import { Stat } from './data/pokemon-stat'; import { PokeballCounts } from './battle-scene'; import { PokeballType } from './data/pokeball'; +import { StatusEffect } from './data/status-effect'; /** * Overrides for testing different in game situations @@ -58,6 +59,7 @@ export const STARTER_SPECIES_OVERRIDE: Species | integer = 0; export const ABILITY_OVERRIDE: Abilities = Abilities.NONE; export const PASSIVE_ABILITY_OVERRIDE: Abilities = Abilities.NONE; export const MOVESET_OVERRIDE: Array = []; +export const STATUS_OVERRIDE: StatusEffect = StatusEffect.NONE; export const SHINY_OVERRIDE: boolean = false; export const VARIANT_OVERRIDE: Variant = 0; @@ -69,6 +71,7 @@ export const OPP_SPECIES_OVERRIDE: Species | integer = 0; export const OPP_ABILITY_OVERRIDE: Abilities = Abilities.NONE; export const OPP_PASSIVE_ABILITY_OVERRIDE = Abilities.NONE; export const OPP_MOVESET_OVERRIDE: Array = []; +export const OPP_STATUS_OVERRIDE: StatusEffect = StatusEffect.NONE; export const OPP_SHINY_OVERRIDE: boolean = false; export const OPP_VARIANT_OVERRIDE: Variant = 0;