maybe fix flaky ceaseless edge test?

This commit is contained in:
innerthunder 2024-11-09 11:26:48 -08:00
parent 4e98bcbe89
commit 60085d41e2
2 changed files with 5 additions and 5 deletions

View File

@ -34,7 +34,7 @@ describe("Moves - Ceaseless Edge", () => {
game.override.startingLevel(100);
game.override.enemyLevel(100);
game.override.moveset([ Moves.CEASELESS_EDGE, Moves.SPLASH, Moves.ROAR ]);
game.override.enemyMoveset([ Moves.SPLASH, Moves.SPLASH, Moves.SPLASH, Moves.SPLASH ]);
game.override.enemyMoveset(Moves.SPLASH);
vi.spyOn(allMoves[Moves.CEASELESS_EDGE], "accuracy", "get").mockReturnValue(100);
});
@ -42,7 +42,7 @@ describe("Moves - Ceaseless Edge", () => {
test(
"move should hit and apply spikes",
async () => {
await game.startBattle([ Species.ILLUMISE ]);
await game.classicMode.startBattle([ Species.ILLUMISE ]);
const enemyPokemon = game.scene.getEnemyPokemon()!;
@ -67,7 +67,7 @@ describe("Moves - Ceaseless Edge", () => {
"move should hit twice with multi lens and apply two layers of spikes",
async () => {
game.override.startingHeldItems([{ name: "MULTI_LENS" }]);
await game.startBattle([ Species.ILLUMISE ]);
await game.classicMode.startBattle([ Species.ILLUMISE ]);
const enemyPokemon = game.scene.getEnemyPokemon()!;
@ -94,7 +94,7 @@ describe("Moves - Ceaseless Edge", () => {
game.override.startingHeldItems([{ name: "MULTI_LENS" }]);
game.override.startingWave(5);
await game.startBattle([ Species.ILLUMISE ]);
await game.classicMode.startBattle([ Species.ILLUMISE ]);
game.move.select(Moves.CEASELESS_EDGE);
await game.phaseInterceptor.to(MoveEffectPhase, false);

View File

@ -320,7 +320,7 @@ export default class GameManager {
const originalMatchupScore = Trainer.prototype.getPartyMemberMatchupScores;
Trainer.prototype.getPartyMemberMatchupScores = () => {
Trainer.prototype.getPartyMemberMatchupScores = originalMatchupScore;
return [[ 1, 100 ], [ 1, 100 ]];
return [[ 1, 1000 ], [ 1, 1000 ]];
};
}