[Test] Fix `Teleporting Hijinks` tests (#4349)
set enemy passive ability by default to `Ball Fetch` to prevent random passive abilities that raise stats too
This commit is contained in:
parent
0a5e9ff9e6
commit
4c9c66f898
|
@ -15,6 +15,7 @@ import { TeleportingHijinksEncounter } from "#app/data/mystery-encounters/encoun
|
||||||
import { SelectModifierPhase } from "#app/phases/select-modifier-phase";
|
import { SelectModifierPhase } from "#app/phases/select-modifier-phase";
|
||||||
import { Mode } from "#app/ui/ui";
|
import { Mode } from "#app/ui/ui";
|
||||||
import ModifierSelectUiHandler from "#app/ui/modifier-select-ui-handler";
|
import ModifierSelectUiHandler from "#app/ui/modifier-select-ui-handler";
|
||||||
|
import { Abilities } from "#app/enums/abilities";
|
||||||
|
|
||||||
const namespace = "mysteryEncounter:teleportingHijinks";
|
const namespace = "mysteryEncounter:teleportingHijinks";
|
||||||
const defaultParty = [Species.LAPRAS, Species.GENGAR, Species.ABRA];
|
const defaultParty = [Species.LAPRAS, Species.GENGAR, Species.ABRA];
|
||||||
|
@ -36,10 +37,12 @@ describe("Teleporting Hijinks - Mystery Encounter", () => {
|
||||||
game = new GameManager(phaserGame);
|
game = new GameManager(phaserGame);
|
||||||
scene = game.scene;
|
scene = game.scene;
|
||||||
scene.money = 20000;
|
scene.money = 20000;
|
||||||
game.override.mysteryEncounterChance(100);
|
game.override
|
||||||
game.override.startingWave(defaultWave);
|
.mysteryEncounterChance(100)
|
||||||
game.override.startingBiome(defaultBiome);
|
.startingWave(defaultWave)
|
||||||
game.override.disableTrainerWaves();
|
.startingBiome(defaultBiome)
|
||||||
|
.disableTrainerWaves()
|
||||||
|
.enemyPassiveAbility(Abilities.BALL_FETCH);
|
||||||
|
|
||||||
vi.spyOn(MysteryEncounters, "mysteryEncountersByBiome", "get").mockReturnValue(
|
vi.spyOn(MysteryEncounters, "mysteryEncountersByBiome", "get").mockReturnValue(
|
||||||
new Map<Biome, MysteryEncounterType[]>([
|
new Map<Biome, MysteryEncounterType[]>([
|
||||||
|
|
Loading…
Reference in New Issue