mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-19 22:09:27 +02:00
Added PigeonBar's test
This commit is contained in:
parent
6f66515b70
commit
98084d8ae4
@ -613,4 +613,23 @@ describe("Abilities - Wimp Out", () => {
|
||||
|
||||
confirmNoSwitch();
|
||||
});
|
||||
|
||||
it("should not activate on wave X0 bosses", async () => {
|
||||
game.override.enemyAbility(Abilities.WIMP_OUT)
|
||||
.startingLevel(5850)
|
||||
.startingWave(10);
|
||||
await game.classicMode.startBattle([ Species.GOLISOPOD ]);
|
||||
|
||||
const enemyPokemon = game.scene.getEnemyPokemon()!;
|
||||
|
||||
// Use 2 turns of False Swipe due to opponent's health bar shield
|
||||
game.move.select(Moves.FALSE_SWIPE);
|
||||
await game.toNextTurn();
|
||||
game.move.select(Moves.FALSE_SWIPE);
|
||||
await game.toNextTurn();
|
||||
|
||||
const isVisible = enemyPokemon.visible;
|
||||
const hasFled = enemyPokemon.switchOutStatus;
|
||||
expect(isVisible && !hasFled).toBe(true);
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user