mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-15 06:15:20 +01:00
[Test] Remove duplicate fake out test (#6691)
This commit is contained in:
parent
49bab02fca
commit
82181c5264
@ -23,7 +23,6 @@ describe("Moves - Fake Out", () => {
|
||||
game.override
|
||||
.battleStyle("single")
|
||||
.enemySpecies(SpeciesId.CORVIKNIGHT)
|
||||
.moveset([MoveId.FAKE_OUT, MoveId.SPLASH])
|
||||
.enemyMoveset(MoveId.SPLASH)
|
||||
.enemyLevel(10)
|
||||
.startingLevel(1) // prevent LevelUpPhase from happening
|
||||
@ -33,18 +32,17 @@ describe("Moves - Fake Out", () => {
|
||||
it("should only work the first turn a pokemon is sent out in a battle", async () => {
|
||||
await game.classicMode.startBattle([SpeciesId.FEEBAS]);
|
||||
|
||||
game.move.use(MoveId.FAKE_OUT);
|
||||
await game.toNextTurn();
|
||||
|
||||
const corv = game.field.getEnemyPokemon();
|
||||
expect(corv).not.toHaveFullHp();
|
||||
corv.hp = corv.getMaxHp();
|
||||
|
||||
game.move.select(MoveId.FAKE_OUT);
|
||||
game.move.use(MoveId.FAKE_OUT);
|
||||
await game.toNextTurn();
|
||||
|
||||
expect(corv.hp).toBeLessThan(corv.getMaxHp());
|
||||
const postTurnOneHp = corv.hp;
|
||||
|
||||
game.move.select(MoveId.FAKE_OUT);
|
||||
await game.toNextTurn();
|
||||
|
||||
expect(corv.hp).toBe(postTurnOneHp);
|
||||
expect(corv).toHaveFullHp();
|
||||
});
|
||||
|
||||
// This is a PokeRogue buff to Fake Out
|
||||
@ -53,43 +51,24 @@ describe("Moves - Fake Out", () => {
|
||||
|
||||
// set hp to 1 for easy knockout
|
||||
game.field.getEnemyPokemon().hp = 1;
|
||||
game.move.select(MoveId.FAKE_OUT);
|
||||
game.move.use(MoveId.FAKE_OUT);
|
||||
await game.toNextWave();
|
||||
|
||||
game.move.select(MoveId.FAKE_OUT);
|
||||
game.move.use(MoveId.FAKE_OUT);
|
||||
await game.toNextTurn();
|
||||
|
||||
const corv = game.field.getEnemyPokemon();
|
||||
expect(corv).toBeDefined();
|
||||
expect(corv?.hp).toBeLessThan(corv?.getMaxHp());
|
||||
});
|
||||
|
||||
// This is a PokeRogue buff to Fake Out
|
||||
it("should succeed at the start of each new wave, even if user wasn't recalled", async () => {
|
||||
await game.classicMode.startBattle([SpeciesId.FEEBAS]);
|
||||
|
||||
// set hp to 1 for easy knockout
|
||||
game.field.getEnemyPokemon().hp = 1;
|
||||
game.move.select(MoveId.FAKE_OUT);
|
||||
await game.toNextWave();
|
||||
|
||||
game.move.select(MoveId.FAKE_OUT);
|
||||
await game.toNextTurn();
|
||||
|
||||
const corv = game.field.getEnemyPokemon();
|
||||
expect(corv).toBeDefined();
|
||||
expect(corv.hp).toBeLessThan(corv.getMaxHp());
|
||||
expect(corv).not.toHaveFullHp();
|
||||
});
|
||||
|
||||
it("should succeed if recalled and sent back out", async () => {
|
||||
await game.classicMode.startBattle([SpeciesId.FEEBAS, SpeciesId.MAGIKARP]);
|
||||
|
||||
game.move.select(MoveId.FAKE_OUT);
|
||||
game.move.use(MoveId.FAKE_OUT);
|
||||
await game.toNextTurn();
|
||||
|
||||
const corv = game.field.getEnemyPokemon();
|
||||
|
||||
expect(corv.hp).toBeLessThan(corv.getMaxHp());
|
||||
expect(corv).not.toHaveFullHp();
|
||||
corv.hp = corv.getMaxHp();
|
||||
|
||||
game.doSwitchPokemon(1);
|
||||
@ -98,9 +77,9 @@ describe("Moves - Fake Out", () => {
|
||||
game.doSwitchPokemon(1);
|
||||
await game.toNextTurn();
|
||||
|
||||
game.move.select(MoveId.FAKE_OUT);
|
||||
game.move.use(MoveId.FAKE_OUT);
|
||||
await game.toNextTurn();
|
||||
|
||||
expect(corv.hp).toBeLessThan(corv.getMaxHp());
|
||||
expect(corv).not.toHaveFullHp();
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user