From a743af2983da3c3e92a2008eaa188bf5ba1a04f4 Mon Sep 17 00:00:00 2001 From: innerthunder Date: Fri, 30 Aug 2024 12:26:50 -0700 Subject: [PATCH] Change deprecated `startBattle` calls --- src/test/abilities/tera_shell.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/abilities/tera_shell.test.ts b/src/test/abilities/tera_shell.test.ts index 695b3ac7a4f..f9cb2935619 100644 --- a/src/test/abilities/tera_shell.test.ts +++ b/src/test/abilities/tera_shell.test.ts @@ -38,7 +38,7 @@ describe("Abilities - Tera Shell", () => { it( "should change the effectiveness of non-resisted attacks when the source is at full HP", async () => { - await game.startBattle([Species.SNORLAX]); + await game.classicMode.startBattle([Species.SNORLAX]); const playerPokemon = game.scene.getPlayerPokemon()!; vi.spyOn(playerPokemon, "getMoveEffectiveness"); @@ -62,7 +62,7 @@ describe("Abilities - Tera Shell", () => { async () => { game.override.enemyMoveset(Array(4).fill(Moves.SHADOW_SNEAK)); - await game.startBattle([Species.SNORLAX]); + await game.classicMode.startBattle([Species.SNORLAX]); const playerPokemon = game.scene.getPlayerPokemon()!; vi.spyOn(playerPokemon, "getMoveEffectiveness"); @@ -79,7 +79,7 @@ describe("Abilities - Tera Shell", () => { async () => { game.override.enemyMoveset(Array(4).fill(Moves.QUICK_ATTACK)); - await game.startBattle([Species.AGGRON]); + await game.classicMode.startBattle([Species.AGGRON]); const playerPokemon = game.scene.getPlayerPokemon()!; vi.spyOn(playerPokemon, "getMoveEffectiveness"); @@ -96,7 +96,7 @@ describe("Abilities - Tera Shell", () => { async () => { game.override.enemyMoveset(Array(4).fill(Moves.DRAGON_RAGE)); - await game.startBattle([Species.CHARIZARD]); + await game.classicMode.startBattle([Species.CHARIZARD]); const playerPokemon = game.scene.getPlayerPokemon()!; vi.spyOn(playerPokemon, "apply");