Apply suggestions from code review

Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
This commit is contained in:
Sirz Benjie 2025-09-05 22:31:12 -05:00 committed by GitHub
parent d674aee395
commit 75c7e98212
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -319,6 +319,7 @@ describe("Throwing balls at bosses after weakening them", () => {
.battleType(BattleType.WILD)
.enemyMoveset(MoveId.SPLASH)
.enemySpecies(SpeciesId.CATERPIE)
.battleStyle("single")
.startingLevel(99999)
.startingWave(170);
});
@ -344,8 +345,7 @@ describe("Throwing balls at bosses after weakening them", () => {
});
it("weakening and catching a boss in a double battle", async () => {
game.override.battleStyle("double").enemyAbility(AbilityId.STURDY);
game.override.battleStyle("double");
await game.classicMode.startBattle([SpeciesId.KARTANA]);
const partyLength = game.scene.getPlayerParty().length;
@ -353,15 +353,9 @@ describe("Throwing balls at bosses after weakening them", () => {
const ball = PokeballType.ROGUE_BALL;
game.scene.pokeballCounts[ball] = 1;
game.move.select(MoveId.SLASH);
await game.toNextTurn();
game.move.select(MoveId.SLASH);
await game.toNextTurn();
game.move.select(MoveId.SLASH);
await game.toNextTurn();
// Kill 1 boss, knock other down to critical hp
game.move.use(MoveId.FALSE_SWIPE);
await game.doKillPokemon(game.field.getEnemyField()[1)
game.doThrowPokeball(ball);
await game.toEndOfTurn();