mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-24 07:23:24 +02:00
Apply suggestions from code review
Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
This commit is contained in:
parent
d674aee395
commit
75c7e98212
@ -319,6 +319,7 @@ describe("Throwing balls at bosses after weakening them", () => {
|
|||||||
.battleType(BattleType.WILD)
|
.battleType(BattleType.WILD)
|
||||||
.enemyMoveset(MoveId.SPLASH)
|
.enemyMoveset(MoveId.SPLASH)
|
||||||
.enemySpecies(SpeciesId.CATERPIE)
|
.enemySpecies(SpeciesId.CATERPIE)
|
||||||
|
.battleStyle("single")
|
||||||
.startingLevel(99999)
|
.startingLevel(99999)
|
||||||
.startingWave(170);
|
.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 () => {
|
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]);
|
await game.classicMode.startBattle([SpeciesId.KARTANA]);
|
||||||
|
|
||||||
const partyLength = game.scene.getPlayerParty().length;
|
const partyLength = game.scene.getPlayerParty().length;
|
||||||
@ -353,15 +353,9 @@ describe("Throwing balls at bosses after weakening them", () => {
|
|||||||
const ball = PokeballType.ROGUE_BALL;
|
const ball = PokeballType.ROGUE_BALL;
|
||||||
game.scene.pokeballCounts[ball] = 1;
|
game.scene.pokeballCounts[ball] = 1;
|
||||||
|
|
||||||
game.move.select(MoveId.SLASH);
|
// Kill 1 boss, knock other down to critical hp
|
||||||
await game.toNextTurn();
|
game.move.use(MoveId.FALSE_SWIPE);
|
||||||
|
await game.doKillPokemon(game.field.getEnemyField()[1)
|
||||||
game.move.select(MoveId.SLASH);
|
|
||||||
await game.toNextTurn();
|
|
||||||
|
|
||||||
game.move.select(MoveId.SLASH);
|
|
||||||
await game.toNextTurn();
|
|
||||||
|
|
||||||
game.doThrowPokeball(ball);
|
game.doThrowPokeball(ball);
|
||||||
await game.toEndOfTurn();
|
await game.toEndOfTurn();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user